We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1350d79 commit f861ccbCopy full SHA for f861ccb
zingolib/src/lightclient/propose.rs
@@ -253,8 +253,7 @@ impl LightClient {
253
}
254
/// A helper method that standardizes latest_proposal update
255
async fn update_latest_proposal(&self, proposal: crate::data::proposal::ZingoProposal) {
256
- let mut latest_proposal_lock = self.latest_proposal.write().await;
257
- *latest_proposal_lock = Some(proposal.clone());
+ *(self.latest_proposal.write().await) = Some(proposal.clone());
258
259
260
#[cfg(test)]
0 commit comments