mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-18 13:44:11 -05: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 } => {
|
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…
x
Reference in New Issue
Block a user