From 8a92cca4484756bb5999a150fd63b3bbc232a8e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 12 Dec 2023 10:40:28 +0000 Subject: [PATCH] Make sure proposals are locking other requests --- nym-api/src/support/nyxd/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nym-api/src/support/nyxd/mod.rs b/nym-api/src/support/nyxd/mod.rs index 6a062352ee..4c08df3eb9 100644 --- a/nym-api/src/support/nyxd/mod.rs +++ b/nym-api/src/support/nyxd/mod.rs @@ -375,7 +375,7 @@ impl crate::coconut::client::Client for Client { fee: Option, ) -> Result<(), CoconutError> { self.0 - .read() + .write() .await .vote_proposal(proposal_id, vote_yes, fee) .await?; @@ -384,7 +384,7 @@ impl crate::coconut::client::Client for Client { async fn execute_proposal(&self, proposal_id: u64) -> crate::coconut::error::Result<()> { self.0 - .read() + .write() .await .execute_proposal(proposal_id, None) .await?;