mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 19:57:43 +00:00
clean pool on process shutdown
This commit is contained in:
parent
2ea133966b
commit
f8df346eb6
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer fp.Close()
|
||||||
|
|
||||||
mgr := faktoryworker.NewManager()
|
mgr := faktoryworker.NewManager()
|
||||||
mgr.Concurrency = consumers
|
mgr.Concurrency = consumers
|
||||||
|
|
Loading…
Reference in a new issue