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 f90193d commit 9acf68f
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

Check failure on line 11 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 11 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 11 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//!

Check failure on line 12 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 12 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 12 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! assumptions:

Check failure on line 13 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 13 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! * connection to TPU node is reliable

Check failure on line 14 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 14 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! * manager and TPU nodes run both in data centers with fast internet connectivity

Check failure on line 15 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 15 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! * ping times vary between 50ms and 400ms depending on the location

Check failure on line 16 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 16 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! * TPU address might be wrong which then is a permanent problem

Check failure on line 17 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 17 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
//! * the ActiveConnection instance gets renewed on leader schedule change

Check failure on line 18 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment

Check failure on line 18 in quic-forward-proxy/src/quinn_auto_reconnect.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected outer doc comment
const SEND_TIMEOUT: Duration = Duration::from_secs(5);
const MAX_RETRY_ATTEMPTS: u32 = 10;
Expand Down

0 comments on commit 9acf68f

Please sign in to comment.