diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/redq/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/redq/main.go b/cmd/redq/main.go index abac395..4514efc 100644 --- a/cmd/redq/main.go +++ b/cmd/redq/main.go @@ -35,8 +35,8 @@ func main() { } sigs := make(chan os.Signal, 1) signal.Notify(sigs, os.Interrupt, os.Kill, syscall.SIGTERM) - go func () { - <- sigs + go func() { + <-sigs u.CleanUp(queries, ctx) os.Exit(0) }() |