mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Fix sampleRelays
This commit is contained in:
parent
55ebd2afa1
commit
2d53752ea7
@ -167,6 +167,8 @@ export const sampleRelays = (relays, scale = 1) => {
|
||||
relays = relays.filter(r => {
|
||||
if (pool.Meta.errors[r.url]) return false
|
||||
if (pool.Meta.getStats(r.url).closed > Date.now() - 30_000) return false
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
// Limit target relays
|
||||
|
Loading…
Reference in New Issue
Block a user