Remove leftover variable

This commit is contained in:
Torjus Håkestad 2024-10-10 22:46:06 +02:00
parent facf18336f
commit dc40185002
Signed by: torjus
SSH Key Fingerprint: SHA256:KjAds8wHfD2mBYK2H815s/+ABcSdcIHUndwHEdSxml4

View File

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