Skip to content

Commit

Permalink
fix: handle absense of garbage collect config
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Aug 8, 2024
1 parent 7e5e957 commit b5df54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/syncthing-configd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b5df54d

Please # to comment.