Remove the unnecessary code

Signed-off-by: JmPotato <ghzpotato@gmail.com>
This commit is contained in:
JmPotato 2021-10-08 14:59:41 +08:00
parent 0504ecdc70
commit 471a804665

View File

@ -54,7 +54,6 @@ func newPeriodic(lg *zap.Logger, clock clockwork.Clock, h time.Duration, rg RevG
period: h,
rg: rg,
c: c,
revs: make([]int64, 0),
}
// revs won't be longer than the retentions.
pc.revs = make([]int64, 0, pc.getRetentions())