aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
Diffstat (limited to 'go')
-rw-r--r--go/topology/topology_event_handling.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/topology/topology_event_handling.go b/go/topology/topology_event_handling.go
index 5f5faf04e..3879fbaba 100644
--- a/go/topology/topology_event_handling.go
+++ b/go/topology/topology_event_handling.go
@@ -20,8 +20,8 @@ func (t *Topology) StartRefreshWritableVolumes(garbageThreshold string) {
}()
go func(garbageThreshold string) {
c := time.Tick(15 * time.Minute)
- if t.IsLeader() {
- for _ = range c {
+ for _ = range c {
+ if t.IsLeader() {
t.Vacuum(garbageThreshold)
}
}