mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
change a map to a forEach.
This commit is contained in:
2
pool.ts
2
pool.ts
@@ -13,7 +13,7 @@ export class SimplePool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(relays: string[]): void {
|
close(relays: string[]): void {
|
||||||
relays.map(url => {
|
relays.forEach(url => {
|
||||||
let relay = this._conn[normalizeURL(url)]
|
let relay = this._conn[normalizeURL(url)]
|
||||||
if (relay) relay.close()
|
if (relay) relay.close()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user