Skip to content

Commit

Permalink
fix: bigger timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Dec 9, 2024
1 parent 2f1dfac commit 4b813c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl Batcher {
info!("future: {:?}", future_msg);

// timeout to prevent a DOS attack
match timeout(Duration::from_secs(CONNECTION_TIMEOUT), future_msg).await {
match timeout(Duration::from_secs(CONNECTION_TIMEOUT*10), future_msg).await {
Ok(Ok(Some(msg))) => {
self.clone().handle_message(msg, outgoing.clone()).await?;
}
Expand Down

0 comments on commit 4b813c5

Please sign in to comment.