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() }()