Skip to content

Commit

Permalink
chore: close db
Browse files Browse the repository at this point in the history
close db in main thread instead
  • Loading branch information
jlangy committed Jul 29, 2024
1 parent cda2b66 commit c940044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregator/compactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

func main() {
log.Printf("cronjob starts...")

model.RunEventsJob()
model.RunSessionsJob()
defer model.GetDB().Close()
select {}
}

0 comments on commit c940044

Please sign in to comment.