mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Remove the unnecessary code
Signed-off-by: JmPotato <ghzpotato@gmail.com>
This commit is contained in:
parent
0504ecdc70
commit
471a804665
@ -54,7 +54,6 @@ func newPeriodic(lg *zap.Logger, clock clockwork.Clock, h time.Duration, rg RevG
|
|||||||
period: h,
|
period: h,
|
||||||
rg: rg,
|
rg: rg,
|
||||||
c: c,
|
c: c,
|
||||||
revs: make([]int64, 0),
|
|
||||||
}
|
}
|
||||||
// revs won't be longer than the retentions.
|
// revs won't be longer than the retentions.
|
||||||
pc.revs = make([]int64, 0, pc.getRetentions())
|
pc.revs = make([]int64, 0, pc.getRetentions())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user