Make sure proposals are locking other requests
This commit is contained in:
committed by
GitHub
parent
4308f602ea
commit
8a92cca448
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user