Skip to content

Commit be6da31

Browse files
committed
Use background context for server shutdown
1 parent cda0dd4 commit be6da31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/manager/internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (cm *controllerManager) serveMetrics(stop <-chan struct{}) {
185185
// Shutdown the server when stop is closed
186186
select {
187187
case <-stop:
188-
server.Shutdown(context.TODO())
188+
server.Shutdown(context.Background())
189189
}
190190
}
191191

0 commit comments

Comments
 (0)