Skip to content

Commit 49c317f

Browse files
committed
remove v2 check
Signed-off-by: okjiang <819421878@qq.com>
1 parent 2628102 commit 49c317f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/cluster/cluster.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2451,10 +2451,6 @@ func (c *RaftCluster) SetAllStoresLimit(typ storelimit.Type, ratePerMin float64)
24512451

24522452
// refreshStoreRateLimit applies the schedule config's store limit to the in-memory store limiter.
24532453
func (c *RaftCluster) refreshStoreRateLimit(storeID uint64, limitType storelimit.Type) {
2454-
// Only v1 uses StoreRateLimit for AddPeer/RemovePeer.
2455-
if c.opt.GetStoreLimitVersion() != storelimit.VersionV1 {
2456-
return
2457-
}
24582454
store := c.GetStore(storeID)
24592455
if store == nil {
24602456
return

0 commit comments

Comments
 (0)