*switch to _seenTopics since they are stored in hex already
This commit is contained in:
parent
9cd5e798d9
commit
9b2e04ae3c
|
@ -162,7 +162,7 @@ export default class DHTFlood extends EventEmitter {
|
||||||
let topicString = this.topic.toString("hex");
|
let topicString = this.topic.toString("hex");
|
||||||
|
|
||||||
let peers: Buffer[] = [...this.swarm.peers.values()]
|
let peers: Buffer[] = [...this.swarm.peers.values()]
|
||||||
.filter((peerInfo: any) => peerInfo.topics.includes(topicString))
|
.filter((peerInfo: any) => peerInfo._seenTopics.has(topicString))
|
||||||
.map((peerInfo) => peerInfo.publicKey);
|
.map((peerInfo) => peerInfo.publicKey);
|
||||||
|
|
||||||
for (const peer of peers) {
|
for (const peer of peers) {
|
||||||
|
|
Loading…
Reference in New Issue