@@ -53,7 +53,7 @@ func (s *DriverServer) Start(_ *emptypb.Empty, stream pb.Driver_StartServer) err
5353	}
5454}
5555
56- func  (s  * DriverServer ) SetConfig (_  context.Context , req  * pb.SetConfigRequest ) (* emptypb.Empty , error ) {
56+ func  (s  * DriverServer ) SetConfig (ctx  context.Context , req  * pb.SetConfigRequest ) (* emptypb.Empty , error ) {
5757	s .logger .Debugf ("Received SetConfig request" )
5858	var  inst  store.Instance 
5959
@@ -62,7 +62,7 @@ func (s *DriverServer) SetConfig(_ context.Context, req *pb.SetConfigRequest) (*
6262		return  & emptypb.Empty {}, err 
6363	}
6464
65- 	_  =  s .driver .Configure (& inst )
65+ 	_  =  s .driver .Configure (ctx ,  & inst )
6666
6767	return  & emptypb.Empty {}, nil 
6868}
@@ -76,7 +76,7 @@ func (s *DriverServer) GuestAgentConn(ctx context.Context, _ *emptypb.Empty) (*e
7676	}
7777
7878	if  connType  !=  "unix"  {
79- 		proxySocketPath  :=  filepath .Join (s .driver .Info ().InstanceDir , filenames .GuestAgentSock )
79+ 		proxySocketPath  :=  filepath .Join (s .driver .Info (ctx ).InstanceDir , filenames .GuestAgentSock )
8080
8181		var  lc  net.ListenConfig 
8282		listener , err  :=  lc .Listen (ctx , "unix" , proxySocketPath )
@@ -102,9 +102,9 @@ func (s *DriverServer) GuestAgentConn(ctx context.Context, _ *emptypb.Empty) (*e
102102	return  & emptypb.Empty {}, nil 
103103}
104104
105- func  (s  * DriverServer ) GetInfo (_  context.Context , _  * emptypb.Empty ) (* pb.InfoResponse , error ) {
105+ func  (s  * DriverServer ) GetInfo (ctx  context.Context , _  * emptypb.Empty ) (* pb.InfoResponse , error ) {
106106	s .logger .Debug ("Received GetInfo request" )
107- 	info  :=  s .driver .Info ()
107+ 	info  :=  s .driver .Info (ctx )
108108
109109	infoJSON , err  :=  json .Marshal (info )
110110	if  err  !=  nil  {
@@ -161,9 +161,9 @@ func (s *DriverServer) Stop(ctx context.Context, empty *emptypb.Empty) (*emptypb
161161	return  empty , nil 
162162}
163163
164- func  (s  * DriverServer ) RunGUI (_  context.Context , empty  * emptypb.Empty ) (* emptypb.Empty , error ) {
164+ func  (s  * DriverServer ) RunGUI (ctx  context.Context , empty  * emptypb.Empty ) (* emptypb.Empty , error ) {
165165	s .logger .Debug ("Received RunGUI request" )
166- 	err  :=  s .driver .RunGUI ()
166+ 	err  :=  s .driver .RunGUI (ctx )
167167	if  err  !=  nil  {
168168		s .logger .Errorf ("RunGUI failed: %v" , err )
169169		return  empty , err 
@@ -260,7 +260,7 @@ func (s *DriverServer) Unregister(ctx context.Context, empty *emptypb.Empty) (*e
260260	return  empty , nil 
261261}
262262
263- func  (s  * DriverServer ) ForwardGuestAgent (_  context.Context , _  * emptypb.Empty ) (* pb.ForwardGuestAgentResponse , error ) {
263+ func  (s  * DriverServer ) ForwardGuestAgent (ctx  context.Context , _  * emptypb.Empty ) (* pb.ForwardGuestAgentResponse , error ) {
264264	s .logger .Debug ("Received ForwardGuestAgent request" )
265- 	return  & pb.ForwardGuestAgentResponse {ShouldForward : s .driver .ForwardGuestAgent ()}, nil 
265+ 	return  & pb.ForwardGuestAgentResponse {ShouldForward : s .driver .ForwardGuestAgent (ctx )}, nil 
266266}
0 commit comments