Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed May 14, 2021
1 parent fe009de commit ed8cab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/statistics/hot_peer_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ func (f *hotPeerCache) CollectExpiredItems(region *core.RegionInfo) []*HotPeerSt
// CheckPeerFlow checks the flow information of a peer.
// Notice: CheckPeerFlow couldn't be used concurrently.
func (f *hotPeerCache) CheckPeerFlow(peer *core.PeerInfo, region *core.RegionInfo) *HotPeerStat {
f.Lock()
defer f.Unlock()
f.RLock()
defer f.RUnlock()
storeID := peer.GetStoreID()
deltaLoads := f.getFlowDeltaLoads(peer)
interval := peer.GetInterval()
Expand Down

0 comments on commit ed8cab7

Please sign in to comment.