Debug print for receiving quote from seller

This commit is contained in:
Daniel Karzel 2021-07-05 14:52:53 +10:00
parent 8d61407738
commit 7fba6e8fbf
No known key found for this signature in database
GPG Key ID: 30C3FC2E438ADB6E

View File

@ -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);
}