Skip to content

Commit

Permalink
revert public api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillLykov committed Dec 16, 2024
1 parent 937458f commit aed704e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion banks-server/src/banks_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ pub async fn start_tcp_server(
&bank_forks,
None,
receiver,
connection_cache.clone(),
&connection_cache,
5_000,
0,
exit.clone(),
Expand Down
6 changes: 3 additions & 3 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl JsonRpcRequestProcessor {
&bank_forks,
None,
receiver,
connection_cache,
&connection_cache,
1000,
1,
exit.clone(),
Expand Down Expand Up @@ -6496,7 +6496,7 @@ pub mod tests {
&bank_forks,
None,
receiver,
connection_cache,
&connection_cache,
1000,
1,
exit,
Expand Down Expand Up @@ -6770,7 +6770,7 @@ pub mod tests {
&bank_forks,
None,
receiver,
connection_cache,
&connection_cache,
1000,
1,
exit,
Expand Down
2 changes: 1 addition & 1 deletion rpc/src/rpc_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl JsonRpcService {
&bank_forks,
leader_info,
receiver,
connection_cache,
&connection_cache,
send_transaction_service_config,
exit,
));
Expand Down
2 changes: 2 additions & 0 deletions send-transaction-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pub mod send_transaction_service;
pub mod send_transaction_service_stats;
pub mod tpu_info;
pub mod transaction_client;
pub use send_transaction_service_stats::SendTransactionServiceStats;
pub use transaction_client::{CurrentLeaderInfo, LEADER_INFO_REFRESH_RATE_MS};

#[macro_use]
extern crate solana_metrics;
10 changes: 5 additions & 5 deletions send-transaction-service/src/send_transaction_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl SendTransactionService {
bank_forks: &Arc<RwLock<BankForks>>,
leader_info: Option<T>,
receiver: Receiver<TransactionInfo>,
connection_cache: Arc<ConnectionCache>,
connection_cache: &Arc<ConnectionCache>,
retry_rate_ms: u64,
leader_forward_count: u64,
exit: Arc<AtomicBool>,
Expand All @@ -171,7 +171,7 @@ impl SendTransactionService {
bank_forks: &Arc<RwLock<BankForks>>,
leader_info: Option<T>,
receiver: Receiver<TransactionInfo>,
connection_cache: Arc<ConnectionCache>,
connection_cache: &Arc<ConnectionCache>,
config: Config,
exit: Arc<AtomicBool>,
) -> Self {
Expand All @@ -180,7 +180,7 @@ impl SendTransactionService {
let retry_transactions = Arc::new(Mutex::new(HashMap::new()));

let client = ConnectionCacheClient::new(
connection_cache,
connection_cache.clone(),
tpu_address,
config.tpu_peers,
leader_info,
Expand Down Expand Up @@ -524,7 +524,7 @@ mod test {
&bank_forks,
None,
receiver,
connection_cache,
&connection_cache,
1000,
1,
Arc::new(AtomicBool::new(false)),
Expand Down Expand Up @@ -558,7 +558,7 @@ mod test {
&bank_forks,
None,
receiver,
connection_cache,
&connection_cache,
1000,
1,
exit.clone(),
Expand Down
2 changes: 1 addition & 1 deletion send-transaction-service/src/transaction_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub const LEADER_INFO_REFRESH_RATE_MS: u64 = 1000;

/// A struct responsible for holding up-to-date leader information
/// used for sending transactions.
pub(crate) struct CurrentLeaderInfo<T>
pub struct CurrentLeaderInfo<T>
where
T: TpuInfo + std::marker::Send + 'static,
{
Expand Down

0 comments on commit aed704e

Please sign in to comment.