Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit becf993

Browse files
committed
backup fix
1 parent 930e2ee commit becf993

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
func backupWorker() {
18-
ticker := time.NewTicker(time.Duration(config.BackupInterval) * time.Minute)
18+
ticker := time.NewTicker(time.Duration(config.BackupInterval) * time.Hour)
1919
defer ticker.Stop()
2020

2121
for range ticker.C {

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ func main() {
123123

124124
log.Printf("Serving on ws://%s\n", config.RelayBind+config.RelayPort)
125125
http.ListenAndServe(config.RelayBind+config.RelayPort, relay)
126+
127+
badgerDB.Close()
128+
blugeDB.Close()
126129
}
127130

128131
func StaticViewHandler(w http.ResponseWriter, _ *http.Request) {

0 commit comments

Comments
 (0)