Use errgroup's context instead of command's context
This commit is contained in:
parent
6f06926064
commit
c2d3b44478
|
|
@ -228,7 +228,7 @@ func runWorker(cmd *cobra.Command, args []string) (err error) {
|
|||
}
|
||||
defer workerInstance.Close()
|
||||
|
||||
return workerInstance.Run(cmd.Context())
|
||||
return workerInstance.Run(ctx)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue