Skip to content

Commit

Permalink
Use background context for server shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Sep 26, 2018
1 parent cda0dd4 commit be6da31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (cm *controllerManager) serveMetrics(stop <-chan struct{}) {
// Shutdown the server when stop is closed
select {
case <-stop:
server.Shutdown(context.TODO())
server.Shutdown(context.Background())
}
}

Expand Down

0 comments on commit be6da31

Please sign in to comment.