change a map to a forEach.

This commit is contained in:
fiatjaf 2023-02-24 09:41:26 -03:00
parent 344762820c
commit b8aa75b6e1
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export class SimplePool {
}
close(relays: string[]): void {
relays.map(url => {
relays.forEach(url => {
let relay = this._conn[normalizeURL(url)]
if (relay) relay.close()
})