feat: 💨
This commit is contained in:
parent
695f2fe017
commit
ed843f637a
8 changed files with 198 additions and 197 deletions
|
|
@ -3,7 +3,7 @@ import { AbstractRelay } from 'nostr-tools/abstract-relay'
|
|||
|
||||
const DEFAULT_CONNECTION_TIMEOUT = 10 * 1000 // 10 seconds
|
||||
const CLEANUP_THRESHOLD = 15 // number of relays to trigger cleanup
|
||||
const CLEANUP_INTERVAL = 5 * 1000 // 5 seconds
|
||||
const CLEANUP_INTERVAL = 30 * 1000 // 30 seconds
|
||||
const IDLE_TIMEOUT = 10 * 1000 // 10 seconds
|
||||
|
||||
export class SmartPool extends SimplePool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue