mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-13 01:59:47 -04:00
Debug print for receiving quote from seller
This commit is contained in:
parent
8d61407738
commit
7fba6e8fbf
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ impl EventLoop {
|
||||||
RequestResponseEvent::Message { peer, message } => {
|
RequestResponseEvent::Message { peer, message } => {
|
||||||
match message {
|
match message {
|
||||||
RequestResponseMessage::Response { response, .. } => {
|
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!");
|
tracing::error!(%peer, "Received bid quote from unexpected peer, this record will be removed!");
|
||||||
self.asb_quote_status.remove(&peer);
|
self.asb_quote_status.remove(&peer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue