Merge pull request #4241 from nymtech/bugfix/concurrent-proposals

Make sure proposals are locking other requests
This commit is contained in:
Jędrzej Stuczyński
2023-12-12 10:58:05 +00:00
committed by GitHub
+2 -2
View File
@@ -375,7 +375,7 @@ impl crate::coconut::client::Client for Client {
fee: Option<Fee>,
) -> 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?;