Skip to content

Commit

Permalink
removed redundant Sleep
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Oct 1, 2020
1 parent ddb1783 commit d103395
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/vt/vttablet/tabletserver/gc/tablegc.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ func (collector *TableGC) Operate(ctx context.Context) {
}
}
}

if collector.isPrimary == 0 {
time.Sleep(1 * time.Second)
}
}
}

Expand Down

0 comments on commit d103395

Please sign in to comment.