Fixing a compilation warning (#308)

* Fixing a compilation warning
This commit is contained in:
Karim Agha 2021-03-10 09:46:34 +01:00 committed by GitHub
parent 5b904476cd
commit e2024c4b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -489,7 +489,8 @@ impl ChainSyncApi {
if self
.priority_tasks_gate
.compare_and_swap(false, true, Ordering::AcqRel)
.compare_exchange(false, true, Ordering::Acquire, Ordering::Release)
.is_err()
{
return;
}