diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-20 15:01:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 15:01:19 +0100 |
commit | bd39748b5c8b1890950db100382d3b128d333222 (patch) | |
tree | 7236946f5c7cd87f5a01c68f6f9a45df4b731b92 /federationapi/statistics | |
parent | 201ac0594336046679cf3612405e85e802a57e12 (diff) |
Update dependencies (#2729)
This updates Dendrite dependencies.
Diffstat (limited to 'federationapi/statistics')
-rw-r--r-- | federationapi/statistics/statistics.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/statistics/statistics.go b/federationapi/statistics/statistics.go index b8e16a25..db6d5c73 100644 --- a/federationapi/statistics/statistics.go +++ b/federationapi/statistics/statistics.go @@ -114,7 +114,7 @@ func (s *ServerStatistics) Failure() (time.Time, bool) { // a new backoff period. Increase the failure counter and // start a goroutine which will wait out the backoff and // unset the backoffStarted flag when done. - if s.backoffStarted.CAS(false, true) { + if s.backoffStarted.CompareAndSwap(false, true) { if s.backoffCount.Inc() >= s.statistics.FailuresUntilBlacklist { s.blacklisted.Store(true) if s.statistics.DB != nil { |