mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
litep2p/discovery: Ignore the peer that provided the record
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -462,7 +462,10 @@ impl Stream for Discovery {
|
||||
"`GET_RECORD` succeeded for {query_id:?}: {record:?}",
|
||||
);
|
||||
|
||||
return Poll::Ready(Some(DiscoveryEvent::GetRecordSuccess { query_id, record }));
|
||||
return Poll::Ready(Some(DiscoveryEvent::GetRecordSuccess {
|
||||
query_id,
|
||||
record: record.record,
|
||||
}));
|
||||
},
|
||||
Poll::Ready(Some(KademliaEvent::PutRecordSucess { query_id, key: _ })) =>
|
||||
return Poll::Ready(Some(DiscoveryEvent::PutRecordSuccess { query_id })),
|
||||
|
||||
Reference in New Issue
Block a user