Skip to content

Commit

Permalink
Make request timeout shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszrzasik committed Mar 10, 2025
1 parent f9060fd commit b416956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions hotshot-task-impls/src/quorum_vote/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,8 @@ impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> QuorumVoteTaskS
.is_leaf_forming_eqc(proposal.data.justify_qc().data.leaf_commit);

if version >= V::Epochs::VERSION && is_justify_qc_forming_eqc {
let _ = self
.handle_eqc_voting(proposal, parent_leaf, event_sender, event_receiver)
.await;
self.handle_eqc_voting(proposal, parent_leaf, event_sender, event_receiver)
.await?;
} else {
self.create_dependency_task_if_new(
proposal.data.view_number(),
Expand Down
2 changes: 1 addition & 1 deletion hotshot-task-impls/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ use tracing::instrument;
use crate::{events::HotShotEvent, helpers::broadcast_event};

/// Amount of time to try for a request before timing out.
pub const REQUEST_TIMEOUT: Duration = Duration::from_millis(2000);
pub const REQUEST_TIMEOUT: Duration = Duration::from_millis(500);

/// Long running task which will request information after a proposal is received.
/// The task will wait a it's `delay` and then send a request iteratively to peers
Expand Down

0 comments on commit b416956

Please sign in to comment.