mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
cmd/main/main.go: close processor when application is done.
This commit is contained in:
parent
0034225e7a
commit
834adb6ca8
1 changed files with 4 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ func main() {
|
|||
c.IrreversibleOnly = conf.IrreversibleOnly
|
||||
})
|
||||
|
||||
app.SpawnProccessor(
|
||||
processor := app.SpawnProccessor(
|
||||
shClient,
|
||||
redis_pubsub.NewPublisher(rdb, redis_common.Namespace{
|
||||
Prefix: conf.Redis.Prefix,
|
||||
|
|
@ -231,4 +231,7 @@ func main() {
|
|||
|
||||
// Run the application
|
||||
run()
|
||||
|
||||
// Close the processor properly
|
||||
processor.Close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue