mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-04 12:03:41 +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
|
c.IrreversibleOnly = conf.IrreversibleOnly
|
||||||
})
|
})
|
||||||
|
|
||||||
app.SpawnProccessor(
|
processor := app.SpawnProccessor(
|
||||||
shClient,
|
shClient,
|
||||||
redis_pubsub.NewPublisher(rdb, redis_common.Namespace{
|
redis_pubsub.NewPublisher(rdb, redis_common.Namespace{
|
||||||
Prefix: conf.Redis.Prefix,
|
Prefix: conf.Redis.Prefix,
|
||||||
|
|
@ -231,4 +231,7 @@ func main() {
|
||||||
|
|
||||||
// Run the application
|
// Run the application
|
||||||
run()
|
run()
|
||||||
|
|
||||||
|
// Close the processor properly
|
||||||
|
processor.Close()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue