Remove leftover variable
This commit is contained in:
parent
facf18336f
commit
dc40185002
3
main.go
3
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()
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user