From f184d169184548fdabe7dcedef518d591a551d04 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sun, 4 Oct 2020 06:29:35 +0800 Subject: [PATCH] Fix golangci nolint --- app/router/command/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/router/command/command.go b/app/router/command/command.go index 378bb7f7..2a6867fe 100644 --- a/app/router/command/command.go +++ b/app/router/command/command.go @@ -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