This commit is contained in:
parent
13a773a1ad
commit
cd5cc07857
@ -80,7 +80,7 @@ export class DefaultConnectionPool extends EventEmitter<NostrConnectionPoolEvent
|
|||||||
}
|
}
|
||||||
this.#requestedIds.add(id);
|
this.#requestedIds.add(id);
|
||||||
// is this performant? should it be batched?
|
// is this performant? should it be batched?
|
||||||
const alreadyHave = await this.#system.cacheRelay?.query(["REQ", id, {ids: [id]}]);
|
const alreadyHave = await this.#system.cacheRelay?.query(["REQ", id, { ids: [id] }]);
|
||||||
if (alreadyHave?.length) {
|
if (alreadyHave?.length) {
|
||||||
this.#log("HAVE: Already have %s", id);
|
this.#log("HAVE: Already have %s", id);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user