From b5df54d6fe8dbfe568dd2c6c602396fe4ba42466 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 8 Aug 2024 12:17:54 +0200 Subject: [PATCH] fix: handle absense of garbage collect config --- cmd/syncthing-configd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing-configd/main.go b/cmd/syncthing-configd/main.go index 9b1844e..dbe4c65 100644 --- a/cmd/syncthing-configd/main.go +++ b/cmd/syncthing-configd/main.go @@ -72,7 +72,7 @@ func main() { el := events.NewEventListener(l, api, config, types) main.Add(el) - if config.GarbageCollect.RunEveryS > 0 { + if config.GetGarbageCollect().GetRunEveryS() > 0 { gc := gc.NewGarbageCollector(l, api, config.GarbageCollect) main.Add(gc) }