mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Debug print for receiving quote from seller
This commit is contained in:
parent
8d61407738
commit
7fba6e8fbf
@ -199,7 +199,9 @@ impl EventLoop {
|
||||
RequestResponseEvent::Message { peer, message } => {
|
||||
match message {
|
||||
RequestResponseMessage::Response { response, .. } => {
|
||||
if self.asb_quote_status.insert(peer, QuoteStatus::Received(response)).is_none() {
|
||||
if self.asb_quote_status.insert(peer, QuoteStatus::Received(response)).is_some() {
|
||||
tracing::debug!(%peer, "Received bid quote {:?} from peer {}", response, peer);
|
||||
} else {
|
||||
tracing::error!(%peer, "Received bid quote from unexpected peer, this record will be removed!");
|
||||
self.asb_quote_status.remove(&peer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user