diff --git a/src/config/hashing.rs b/src/config/hashing.rs index 986ed836..46fd1402 100644 --- a/src/config/hashing.rs +++ b/src/config/hashing.rs @@ -55,12 +55,11 @@ impl HokmaLock { .lock .compare_exchange(1, 1, Ordering::Acquire, Ordering::Relaxed) { - if previous != 1 { - return WhenTheHokmaSuppression { - hokma: self, - state: previous, - }; - } + // If we failed, previous cannot be 1 + return WhenTheHokmaSuppression { + hokma: self, + state: previous, + }; } } }