You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add a general queue to limit all dials
* fix: improve queue count logic and add better abort
* feat: add a basic blacklist
* fix: abort dial queue on error instead of stop
* feat: add a crude priority lane
* test: add test for blacklist error
* fix: make blacklist and max dials configurable
* refactor: blacklist after callback
* test: improve testings around blacklisting
If defined, `options` should be an object with the following keys and respective values:
63
63
64
+
-`blacklistTTL`: - number of ms a peer should not be dialable to after it errors. Defaults to `120000`(120 seconds)
65
+
-`maxParallelDials` - number of concurrent dials the switch should allow. Defaults to `50`
64
66
-`stats`: an object with the following keys and respective values:
65
67
-`maxOldPeersRetention`: maximum old peers retention. For when peers disconnect and keeping the stats around in case they reconnect. Defaults to `100`.
66
68
-`computeThrottleMaxQueueSize`: maximum queue size to perform stats computation throttling. Defaults to `1000`.
0 commit comments