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()
|
defer input.Close()
|
||||||
input.NonBlock()
|
input.NonBlock()
|
||||||
|
|
||||||
var done bool
|
|
||||||
|
|
||||||
// Start metrics server
|
// Start metrics server
|
||||||
srvCtx, srvCancel := context.WithCancel(context.Background())
|
srvCtx, srvCancel := context.WithCancel(context.Background())
|
||||||
defer srvCancel()
|
defer srvCancel()
|
||||||
@ -66,7 +64,6 @@ func main() {
|
|||||||
// Listen for context cancellation
|
// Listen for context cancellation
|
||||||
go func() {
|
go func() {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
done = true
|
|
||||||
input.Close()
|
input.Close()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user