mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
reqrep: print warn message instead of panic when receive different reply id from request id
This commit is contained in:
@@ -183,7 +183,10 @@ impl ReqProtocol {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
assert!(reply.get_id() == request.get_id());
|
||||
if reply.get_id() != request.get_id() {
|
||||
warn!("Reply id is not equal to Request id");
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
Ok(Some(reply.get_payload()))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user