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

@ -51,7 +51,7 @@ func (b *ProcessContext) WaitForComponentsToFinish() {
}
func (b *ProcessContext) Degraded() {
if b.degraded.CAS(false, true) {
if b.degraded.CompareAndSwap(false, true) {
logrus.Warn("Dendrite is running in a degraded state")
sentry.CaptureException(fmt.Errorf("Process is running in a degraded state"))
}