From d528fff0e9d73fe1c32c93407af78a5cb7ca4d52 Mon Sep 17 00:00:00 2001 From: jbergner Date: Mon, 9 Jun 2025 22:14:53 +0200 Subject: [PATCH] set refresh to 2h --- compose.yml | 8 ++++---- main.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compose.yml b/compose.yml index 6403d1c..17ee612 100644 --- a/compose.yml +++ b/compose.yml @@ -24,8 +24,8 @@ services: networks: - flod_nw command: ["redis-server", "--save", "", "--appendonly", "no"] # reine In-Memory-Instanz - #volumes: - #- redis-data:/data # falls du doch Persistence willst + volumes: + - redis-data:/data # falls du doch Persistence willst restart: unless-stopped newt: @@ -42,5 +42,5 @@ services: networks: flod_nw: -#volumes: - #redis-data: +volumes: + redis-data: diff --git a/main.go b/main.go index 7a27daf..dbb8a15 100644 --- a/main.go +++ b/main.go @@ -308,7 +308,7 @@ func main() { } go func() { - ticker := time.NewTicker(6 * time.Hour) + ticker := time.NewTicker(2 * time.Hour) defer ticker.Stop() for range ticker.C { if err := syncOnce(ctx, cfg, rdb, ranger); err != nil {