Skip to content

Commit

Permalink
Reconnecing to block stream and slot stream incase of error
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Jan 12, 2024
1 parent 3f69de5 commit 2498950
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WS_ADDR=ws://0.0.0.0:8900
# PROMETHEUS_ADDR=your_prometheus_address_here

## Fanout size and retries configuration
FANOUT_SIZE=18
FANOUT_SIZE=32
MAX_RETRIES=40
RETRY_TIMEOUT=3

Expand Down
4 changes: 2 additions & 2 deletions core/src/quic_connection_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl QuicConnectionUtils {
}
}
Err(_) => {
warn!("timeout while writing transaction for {}", identity);
log::debug!("timeout while writing transaction for {}", identity);
return Err(QuicConnectionError::TimeOut);
}
}
Expand All @@ -177,7 +177,7 @@ impl QuicConnectionUtils {
}
}
Err(_) => {
warn!("timeout while finishing transaction for {}", identity);
log::debug!("timeout while finishing transaction for {}", identity);
return Err(QuicConnectionError::TimeOut);
}
}
Expand Down
3 changes: 1 addition & 2 deletions lite-rpc/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use solana_lite_rpc_services::{

use anyhow::Context;
use jsonrpsee::{core::SubscriptionResult, server::ServerBuilder, PendingSubscriptionSink};
use log::info;
use prometheus::{opts, register_int_counter, IntCounter};
use solana_lite_rpc_core::{
stores::{block_information_store::BlockInformation, data_cache::DataCache, tx_store::TxProps},
Expand Down Expand Up @@ -207,7 +206,7 @@ impl LiteRpcServer for LiteBridge {
.get_latest_block(commitment_config)
.await;

info!("glb {blockhash} {slot} {block_height}");
log::trace!("glb {blockhash} {slot} {block_height}");

Ok(RpcResponse {
context: RpcResponseContext {
Expand Down

0 comments on commit 2498950

Please sign in to comment.