fix: WSOL ATA creation in background with retry/timeout; silence unused and deprecated warnings
- lib: WSOL ATA creation moved to background to avoid blocking startup; ensure_wsol_ata adds 3 retries and 10s timeout - lib: cfg(feature = "perf-trace") for DEFAULT_SLIPPAGE usage - gas_fee_strategy, bloxroute, transaction_builder, async_executor, executor: prefix unused vars/params with underscore or allow - pumpswap: add allow(deprecated) for get_program_accounts_with_config Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -300,7 +300,7 @@ impl GasFeeStrategy {
|
||||
pub fn update_buy_tip(&self, buy_tip: f64) {
|
||||
self.strategies.rcu(|current_map| {
|
||||
let mut new_map = (**current_map).clone();
|
||||
for ((swqos_type, trade_type, strategy_type), value) in new_map.iter_mut() {
|
||||
for ((_swqos_type, trade_type, _strategy_type), value) in new_map.iter_mut() {
|
||||
if *trade_type == TradeType::Buy {
|
||||
value.tip = buy_tip;
|
||||
}
|
||||
@@ -314,7 +314,7 @@ impl GasFeeStrategy {
|
||||
pub fn update_sell_tip(&self, sell_tip: f64) {
|
||||
self.strategies.rcu(|current_map| {
|
||||
let mut new_map = (**current_map).clone();
|
||||
for ((swqos_type, trade_type, strategy_type), value) in new_map.iter_mut() {
|
||||
for ((_swqos_type, trade_type, _strategy_type), value) in new_map.iter_mut() {
|
||||
if *trade_type == TradeType::Sell {
|
||||
value.tip = sell_tip;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ impl GasFeeStrategy {
|
||||
pub fn update_buy_cu_price(&self, buy_cu_price: u64) {
|
||||
self.strategies.rcu(|current_map| {
|
||||
let mut new_map = (**current_map).clone();
|
||||
for ((swqos_type, trade_type, strategy_type), value) in new_map.iter_mut() {
|
||||
for ((_swqos_type, trade_type, _strategy_type), value) in new_map.iter_mut() {
|
||||
if *trade_type == TradeType::Buy {
|
||||
value.cu_price = buy_cu_price;
|
||||
}
|
||||
@@ -342,7 +342,7 @@ impl GasFeeStrategy {
|
||||
pub fn update_sell_cu_price(&self, sell_cu_price: u64) {
|
||||
self.strategies.rcu(|current_map| {
|
||||
let mut new_map = (**current_map).clone();
|
||||
for ((swqos_type, trade_type, strategy_type), value) in new_map.iter_mut() {
|
||||
for ((_swqos_type, trade_type, _strategy_type), value) in new_map.iter_mut() {
|
||||
if *trade_type == TradeType::Sell {
|
||||
value.cu_price = sell_cu_price;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user