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

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-03 06:36:08 -07:00
parent 2aa3decc38
commit c9161b1f5c

View File

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