change a map to a forEach.

This commit is contained in:
fiatjaf
2023-02-24 09:41:26 -03:00
parent 344762820c
commit b8aa75b6e1

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()
})