1
0
Fork 0
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:
Henrik Hautakoski 2023-03-29 11:55:42 +02:00
parent 0034225e7a
commit 834adb6ca8

View file

@ -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()
}