Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brother-jin committed Jun 3, 2024
1 parent 97ecf67 commit 12a3ccc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codis/pkg/proxy/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ func init() {
cmdstats.qps.Set(int64(normalized + 0.5))

cmdstats.RLock()
defer cmdstats.RUnlock()

for i := 0; i < IntervalNum; i++ {
/*if int64(float64(time.Since(LastRefreshTime[i]))/float64(time.Second)) < IntervalMark[i] {
continue
Expand All @@ -218,6 +216,7 @@ func init() {
}
LastRefreshTime[i] = time.Now()
}
cmdstats.RUnlock()
}
}()
}
Expand Down

0 comments on commit 12a3ccc

Please sign in to comment.