From c0f30fc585beb16127c60493fd25feb3bf3d358c Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 15 Jan 2024 15:41:47 -0600 Subject: [PATCH] Clean up main.go --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index a8ed369..2d12011 100644 --- a/main.go +++ b/main.go @@ -196,16 +196,16 @@ func main() { } log.Info().Msg("Command registration complete") - // terms, _ := GetTerms("", 1, 25) - - // Cloes session, ensure http client closes idle connections + // Close session, ensure http client closes idle connections defer session.Close() defer client.CloseIdleConnections() + // Setup signal handler channel stop := make(chan os.Signal, 1) signal.Notify(stop, os.Interrupt) // Ctrl+C signal signal.Notify(stop, syscall.SIGTERM) // Container stop signal + // Wait for signal (indefinite) <-stop // Defers are called after this