From dc40185002a1bd4a3a5a5385b30711aa90ea632c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 10 Oct 2024 22:46:06 +0200 Subject: [PATCH] Remove leftover variable --- main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.go b/main.go index b77e695..aa69801 100644 --- a/main.go +++ b/main.go @@ -41,8 +41,6 @@ func main() { defer input.Close() input.NonBlock() - var done bool - // Start metrics server srvCtx, srvCancel := context.WithCancel(context.Background()) defer srvCancel() @@ -66,7 +64,6 @@ func main() { // Listen for context cancellation go func() { <-ctx.Done() - done = true input.Close() }()