final adjustments and now even the flaky tests that depend on others's relay should pass most of the time.

This commit is contained in:
fiatjaf
2023-12-19 10:01:52 -03:00
parent 804403f574
commit 8840c4d8e2
5 changed files with 21 additions and 10 deletions

View File

@@ -34,6 +34,12 @@ export class SimplePool {
return relay
}
close(relays: string[]) {
relays.map(normalizeURL).forEach(url => {
this.relays.get(url)?.close()
})
}
subscribeMany(relays: string[], filters: Filter[], params: SubscribeManyParams): SubCloser {
if (this.trackRelays) {
params.receivedEvent = (relay: Relay, id: string) => {