Update dependencies (#2729)

This updates Dendrite dependencies.
This commit is contained in:
Neil Alexander 2022-09-20 15:01:19 +01:00 committed by GitHub
parent 201ac05943
commit bd39748b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 131 additions and 143 deletions

View file

@ -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 {