Don't get monero balance before quote

This is no longer needed now.
This commit is contained in:
Thomas Eizinger 2021-06-24 20:02:11 +10:00
parent 301d5be127
commit 981f9fd704
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -172,18 +172,6 @@ where
tracing::warn!(%peer, "Ignoring spot price request because: {}", error);
}
SwarmEvent::Behaviour(OutEvent::QuoteRequested { channel, peer }) => {
// TODO: Move the spot-price update into dedicated update stream to decouple it from quote requests
let current_balance = self.monero_wallet.get_balance().await;
match current_balance {
Ok(balance) => {
// FIXME self.swarm.behaviour_mut().spot_price.update_balance(balance);
}
Err(e) => {
tracing::error!("Failed to fetch Monero balance: {:#}", e);
}
}
let quote = match self.make_quote(self.min_buy, self.max_buy).await {
Ok(quote) => quote,
Err(error) => {