Skip to content

Commit

Permalink
make cargo fmt happy
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Dec 10, 2024
1 parent 9acf68f commit 8d552fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions quic-forward-proxy/src/quinn_auto_reconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use tokio::sync::RwLock;
use tokio::time::timeout;
use tracing::debug;

//! connection manager with automatic reconnect; designated for connection to Solana TPU nodes
//!
//! assumptions:
//! * connection to TPU node is reliable
//! * manager and TPU nodes run both in data centers with fast internet connectivity
//! * ping times vary between 50ms and 400ms depending on the location
//! * TPU address might be wrong which then is a permanent problem
//! * the ActiveConnection instance gets renewed on leader schedule change
// connection manager with automatic reconnect; designated for connection to Solana TPU nodes
//
// assumptions:
// * connection to TPU node is reliable
// * manager and TPU nodes run both in data centers with fast internet connectivity
// * ping times vary between 50ms and 400ms depending on the location
// * TPU address might be wrong which then is a permanent problem
// * the ActiveConnection instance gets renewed on leader schedule change

const SEND_TIMEOUT: Duration = Duration::from_secs(5);
const MAX_RETRY_ATTEMPTS: u32 = 10;
Expand Down

0 comments on commit 8d552fc

Please sign in to comment.