Fix golangci nolint

pull/2757/head
loyalsoldier 2020-10-04 06:29:35 +08:00
parent 7a789fed37
commit f184d16918
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (s *routingServer) TestRoute(ctx context.Context, request *TestRouteRequest
return nil, err
}
if request.PublishResult && s.routingStats != nil {
ctx, _ := context.WithTimeout(context.Background(), 4*time.Second) // nolint: lostcancel
ctx, _ := context.WithTimeout(context.Background(), 4*time.Second) // nolint: govet
s.routingStats.Publish(ctx, route)
}
return AsProtobufMessage(request.FieldSelectors)(route), nil