Router: formatting

This commit is contained in:
Serge Farny 2024-10-08 15:05:12 +02:00
parent de74c46423
commit c6722bb68e
4 changed files with 14 additions and 6 deletions

View File

@ -253,7 +253,11 @@ impl Edge {
return;
}
debug!("Lazily updating {}->{}", debug_tools::name(&self.input_mint), debug_tools::name(&self.output_mint));
debug!(
"Lazily updating {}->{}",
debug_tools::name(&self.input_mint),
debug_tools::name(&self.output_mint)
);
self.update(chain_data, token_cache, price_cache, path_warming_amounts)
}

View File

@ -92,8 +92,13 @@ impl RouteProvider for RoutingRouteProvider {
};
// ensure new hot mints are ready (edge cached_price should be available)
self.routing
.lazy_compute_prices(&self.chain_data, &self.tokens, &self.prices, &from_mint, &to_mint);
self.routing.lazy_compute_prices(
&self.chain_data,
&self.tokens,
&self.prices,
&from_mint,
&to_mint,
);
let route = self.routing.find_best_route(
&self.chain_data,

View File

@ -13,7 +13,6 @@ use solana_program::program_error::ProgramError;
use solana_program::program_pack::Pack;
use solana_program::{account_info::AccountInfo, pubkey::Pubkey};
#[cfg(not(feature = "no-entrypoint"))]
use {default_env::default_env, solana_program::entrypoint, solana_security_txt::security_txt};