Skip to content

Commit

Permalink
Update filters.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer authored Aug 20, 2020
1 parent e06c6c4 commit cd55702
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/schedule/filter/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,14 +725,12 @@ func createRegionForRuleFit(startKey, endKey []byte,
copyLeader := &metapb.Peer{
Id: leader.Id,
StoreId: leader.StoreId,
Role: leader.Role,
}
copyPeers := make([]*metapb.Peer, 0, len(peers))
for _, p := range peers {
peer := &metapb.Peer{
Id: p.Id,
StoreId: p.StoreId,
Role: p.Role,
}
copyPeers = append(copyPeers, peer)
}
Expand Down

0 comments on commit cd55702

Please sign in to comment.