Skip to content

Commit

Permalink
Merge pull request #27 from libp2p/uci/update-go
Browse files Browse the repository at this point in the history
ci: uci/update-go
  • Loading branch information
web3-bot authored Mar 14, 2024
2 parents 96a0603 + 7e2a3e1 commit d72cad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/libp2p/go-flow-metrics

go 1.20
go 1.21

require github.com/benbjohnson/clock v1.3.0
2 changes: 1 addition & 1 deletion sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (sw *sweeper) update() {

// update the totals but leave the rates alone.
for _, m := range sw.meters {
m.snapshot.Total = atomic.LoadUint64(&m.accumulator)
m.snapshot.Total = m.accumulator.Load()
}
return
} else if tdiff <= ewmaRate/10 {
Expand Down

0 comments on commit d72cad5

Please sign in to comment.