Reconnecing to block stream and slot stream incase of error
This commit is contained in:
parent
3f69de5247
commit
2498950583
|
@ -11,7 +11,7 @@ WS_ADDR=ws://0.0.0.0:8900
|
||||||
# PROMETHEUS_ADDR=your_prometheus_address_here
|
# PROMETHEUS_ADDR=your_prometheus_address_here
|
||||||
|
|
||||||
## Fanout size and retries configuration
|
## Fanout size and retries configuration
|
||||||
FANOUT_SIZE=18
|
FANOUT_SIZE=32
|
||||||
MAX_RETRIES=40
|
MAX_RETRIES=40
|
||||||
RETRY_TIMEOUT=3
|
RETRY_TIMEOUT=3
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ impl QuicConnectionUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
warn!("timeout while writing transaction for {}", identity);
|
log::debug!("timeout while writing transaction for {}", identity);
|
||||||
return Err(QuicConnectionError::TimeOut);
|
return Err(QuicConnectionError::TimeOut);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ impl QuicConnectionUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
warn!("timeout while finishing transaction for {}", identity);
|
log::debug!("timeout while finishing transaction for {}", identity);
|
||||||
return Err(QuicConnectionError::TimeOut);
|
return Err(QuicConnectionError::TimeOut);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ use solana_lite_rpc_services::{
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use jsonrpsee::{core::SubscriptionResult, server::ServerBuilder, PendingSubscriptionSink};
|
use jsonrpsee::{core::SubscriptionResult, server::ServerBuilder, PendingSubscriptionSink};
|
||||||
use log::info;
|
|
||||||
use prometheus::{opts, register_int_counter, IntCounter};
|
use prometheus::{opts, register_int_counter, IntCounter};
|
||||||
use solana_lite_rpc_core::{
|
use solana_lite_rpc_core::{
|
||||||
stores::{block_information_store::BlockInformation, data_cache::DataCache, tx_store::TxProps},
|
stores::{block_information_store::BlockInformation, data_cache::DataCache, tx_store::TxProps},
|
||||||
|
@ -207,7 +206,7 @@ impl LiteRpcServer for LiteBridge {
|
||||||
.get_latest_block(commitment_config)
|
.get_latest_block(commitment_config)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
info!("glb {blockhash} {slot} {block_height}");
|
log::trace!("glb {blockhash} {slot} {block_height}");
|
||||||
|
|
||||||
Ok(RpcResponse {
|
Ok(RpcResponse {
|
||||||
context: RpcResponseContext {
|
context: RpcResponseContext {
|
||||||
|
|
Loading…
Reference in New Issue