From 7cab4660577357c94428e7b694e9584abd4d4b5b Mon Sep 17 00:00:00 2001 From: Keyao Shen Date: Thu, 9 Jan 2025 14:39:35 -0800 Subject: [PATCH] Rename function --- crates/task-impls/src/quorum_vote/handlers.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/task-impls/src/quorum_vote/handlers.rs b/crates/task-impls/src/quorum_vote/handlers.rs index c50ab29fc8..a590bbac57 100644 --- a/crates/task-impls/src/quorum_vote/handlers.rs +++ b/crates/task-impls/src/quorum_vote/handlers.rs @@ -140,7 +140,7 @@ async fn verify_drb_result, V: Ver /// Start the DRB computation task for the next epoch. /// -/// Uses the seed previously stored in `store_drb_seed_and_computed_result`. +/// Uses the seed previously stored in `store_drb_seed_and_result`. async fn start_drb_task, V: Versions>( proposal: &QuorumProposal2, task_state: &mut QuorumVoteTaskState, @@ -229,11 +229,7 @@ async fn start_drb_task, V: Versio /// /// We don't need to handle the special cases explicitly here, because the first leaf with which /// we'll start the DRB computation is for epoch 3. -async fn store_drb_seed_and_computed_result< - TYPES: NodeType, - I: NodeImplementation, - V: Versions, ->( +async fn store_drb_seed_and_result, V: Versions>( task_state: &mut QuorumVoteTaskState, decided_leaf: &Leaf2, ) -> Result<()> { @@ -437,8 +433,7 @@ pub(crate) async fn handle_quorum_proposal_validated< if version >= V::Epochs::VERSION { // `leaf_views.last()` is never none if we've reached a new decide, so this is safe to // unwrap. - store_drb_seed_and_computed_result(task_state, &leaf_views.last().unwrap().leaf) - .await?; + store_drb_seed_and_result(task_state, &leaf_views.last().unwrap().leaf).await?; } }