Skip to content

Commit 7a3abbf

Browse files
apollo_consensus_orchestrator: change batcher client to Arc in initiate_validation (#11466)
1 parent f63119c commit 7a3abbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/apollo_consensus_orchestrator/src/validate_proposal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub(crate) async fn validate_proposal(
165165
.await?;
166166

167167
initiate_validation(
168-
args.deps.batcher.as_ref(),
168+
args.deps.batcher.clone(),
169169
args.deps.state_sync_client,
170170
block_info.clone(),
171171
args.proposal_id,
@@ -388,7 +388,7 @@ async fn await_second_proposal_part(
388388
}
389389

390390
async fn initiate_validation(
391-
batcher: &dyn BatcherClient,
391+
batcher: Arc<dyn BatcherClient>,
392392
state_sync_client: Arc<dyn StateSyncClient>,
393393
block_info: ConsensusBlockInfo,
394394
proposal_id: ProposalId,

0 commit comments

Comments
 (0)