Skip to content

Commit

Permalink
fix ci lint
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <[email protected]>
  • Loading branch information
crazycs520 committed Dec 25, 2024
1 parent 562e6e2 commit 37a5ea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ func (r *RequestErrorStats) String() string {
func (r *RegionRequestRuntimeStats) Clone() *RegionRequestRuntimeStats {
newRs := NewRegionRequestRuntimeStats()
newRs.RPCStatsList = make([]RPCRuntimeStats, 0, len(r.RPCStatsList))
for i := range r.RPCStatsList {
newRs.RPCStatsList = append(newRs.RPCStatsList, r.RPCStatsList[i])
}
newRs.RPCStatsList = append(newRs.RPCStatsList, r.RPCStatsList...)
if len(r.ErrStats) > 0 {
newRs.ErrStats = make(map[string]int)
maps.Copy(newRs.ErrStats, r.ErrStats)
Expand Down

0 comments on commit 37a5ea0

Please sign in to comment.