Skip to content

Commit

Permalink
reduce changes
Browse files Browse the repository at this point in the history
  • Loading branch information
b-yap committed Oct 8, 2024
1 parent 6e3f7c3 commit 71222e1
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion clients/stellar-relay-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ wallet = { path = "../wallet", features = ["testing-utils"] }
console-subscriber = { version = "0.3.0" }

[dependencies]

hex = "0.4.3"
tracing = { version = "0.1", features = ["log"] }

Expand Down
1 change: 0 additions & 1 deletion clients/stellar-relay-lib/src/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ impl StellarOverlayConnection {

impl Drop for StellarOverlayConnection {
fn drop(&mut self) {
debug!("drop(): shutting down StellarOverlayConnection");
self.stop();
}
}
1 change: 0 additions & 1 deletion clients/vault/src/cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl<P: IssuePallet + ReplacePallet + UtilFuncs + SecurityPallet + Clone> Cancel
mut self,
mut event_listener: Receiver<Event>,
) -> Result<(), RuntimeError> {
tracing::info!("handle_cancellation(): started");
let mut list_state = ListState::Invalid;
let mut active_requests: Vec<ActiveRequest> = vec![];

Expand Down
4 changes: 2 additions & 2 deletions clients/vault/src/oracle/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use stellar_relay_lib::{

use crate::{
oracle::{
collector::ScpMessageCollector, errors::Error, get_random_secret_key,
collector::ScpMessageCollector, errors::Error,
types::StellarMessageSender, AddTxSet, Proof,
},
ArcRwLock,
Expand Down Expand Up @@ -176,7 +176,7 @@ pub async fn start_oracle_agent(
) -> ArcRwLock<OracleAgent> {
let oracle_agent = Arc::new(RwLock::new(OracleAgent::new(&cfg, shutdown_sender.clone())));

let secret = get_random_secret_key();
let secret = crate::oracle::get_random_secret_key();

tokio::spawn(listen_for_stellar_messages(cfg, oracle_agent.clone(), secret, shutdown_sender));

Expand Down
3 changes: 2 additions & 1 deletion clients/vault/src/oracle/collector/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ impl ScpMessageCollector {
stellar_history_archive_urls,
}
}

pub fn envelopes_map_len(&self) -> usize {
self.envelopes_map.read().len()
}
Expand Down Expand Up @@ -120,7 +121,7 @@ impl ScpMessageCollector {
self.txset_and_slot_map.read().get_txset_hash_by_slot(slot).cloned()
}

pub fn last_slot_index(&self) -> u64 {
pub(crate) fn last_slot_index(&self) -> u64 {
self.last_slot_index
}
}
Expand Down
2 changes: 1 addition & 1 deletion clients/vault/src/oracle/collector/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl ScpMessageCollector {

// we are only interested with `ScpStExternalize`. Other messages are ignored.
if let ScpStatementPledges::ScpStExternalize(stmt) = &env.statement.pledges {
tracing::debug!(
tracing::trace!(
"Handling Incoming ScpEnvelopes for slot {slot}: SCPStExternalize found: {}",
to_base64_xdr_string(stmt)
);
Expand Down
1 change: 0 additions & 1 deletion clients/vault/src/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub async fn listen_for_accept_replace(
payment_margin: Duration,
oracle_agent: ArcRwLock<OracleAgent>,
) -> Result<(), ServiceError<Error>> {
tracing::info!("listen_for_accept_replace(): started");
let parachain_rpc = &parachain_rpc;
let vault_id_manager = &vault_id_manager;
let shutdown_tx = &shutdown_tx;
Expand Down
1 change: 0 additions & 1 deletion clients/wallet/src/horizon/horizon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ where
U: Clone + IsEmptyExt,
Filter: FilterWith<T, U> + Clone,
{
tracing::info!("listen_for_new_transactions(): started");
let horizon_client = reqwest::Client::new();
let mut fetcher =
HorizonFetcher::new(horizon_client, vault_account_public_key, is_public_network);
Expand Down

0 comments on commit 71222e1

Please sign in to comment.