فهرست منبع

functional-tester/agent: fix govet shadow in Go tip

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 سال پیش
والد
کامیت
c9161b1f5c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tools/functional-tester/agent/server.go

+ 2 - 1
tools/functional-tester/agent/server.go

@@ -128,7 +128,8 @@ func (srv *Server) Transport(stream rpcpb.Transport_TransportServer) (err error)
 	errc := make(chan error)
 	go func() {
 		for {
-			req, err := stream.Recv()
+			var req *rpcpb.Request
+			req, err = stream.Recv()
 			if err != nil {
 				errc <- err
 				// TODO: handle error and retry