From 6de407d6f254b743f4d858c2ae1889e92b47aa8c Mon Sep 17 00:00:00 2001 From: Alon Haramati <91828241+alonh5@users.noreply.github.com> Date: Sun, 10 Nov 2024 13:39:19 +0200 Subject: [PATCH] chore(batcher): rename variable (#1901) --- crates/batcher/src/proposal_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/batcher/src/proposal_manager.rs b/crates/batcher/src/proposal_manager.rs index de0ce51398..479853b4e4 100644 --- a/crates/batcher/src/proposal_manager.rs +++ b/crates/batcher/src/proposal_manager.rs @@ -205,8 +205,8 @@ impl ProposalManagerTrait for ProposalManager { &self, proposal_id: ProposalId, ) -> ProposalResult { - let g = self.executed_proposals.lock().await; - let output = g + let proposals = self.executed_proposals.lock().await; + let output = proposals .get(&proposal_id) .ok_or(GetProposalResultError::ProposalDoesNotExist { proposal_id })?; match output {