Unify the representation of the three dots.

This commit is contained in:
Maximilian Paß
2023-11-09 11:59:46 +01:00
committed by Sebastian Serth
parent 0f7e98f78e
commit 70c108aebf
6 changed files with 8 additions and 8 deletions

View File

@@ -253,13 +253,13 @@ func shutdownOnOSSignal(server *http.Server, ctx context.Context, stopProfiling
case <-ctx.Done():
os.Exit(1)
case <-writeProfileSignal:
log.Info("Received SIGUSR1 ...")
log.Info("Received SIGUSR1...")
stopProfiling()
// Continue listening on signals and replace `stopProfiling` with an empty function
shutdownOnOSSignal(server, ctx, func() {})
case <-shutdownSignals:
log.Info("Received SIGINT, shutting down ...")
log.Info("Received SIGINT, shutting down...")
defer stopProfiling()
ctx, cancel := context.WithTimeout(context.Background(), gracefulShutdownWait)