Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Jul 22, 2021
1 parent 552a3cb commit c4c7d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/query/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func createHTTPServer(querySvc *querysvc.QueryService, metricsQuerySvc querysvc.

ctx, closeGRPCGateway := context.WithCancel(context.Background())
if err := apiv3.RegisterGRPCGateway(ctx, logger, r, queryOpts.BasePath, queryOpts.GRPCHostPort, queryOpts.TLSGRPC); err != nil {
defer closeGRPCGateway()
closeGRPCGateway()
return nil, nil, err
}

Expand Down

0 comments on commit c4c7d8d

Please sign in to comment.