Skip to content

Commit

Permalink
chore: update switch (#395)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: switch configuration has changed.
'blacklistTTL' is now 'denyTTL' and 'blackListAttempts' is now 'denyAttempts'
  • Loading branch information
jacobheun authored Aug 1, 2019
1 parent 3e95e6f commit 684f283
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"fsm-event": "^2.1.0",
"libp2p-connection-manager": "^0.1.0",
"libp2p-ping": "^0.8.5",
"libp2p-switch": "^0.42.12",
"libp2p-switch": "^0.43.0",
"libp2p-websockets": "^0.12.2",
"mafmt": "^6.0.7",
"multiaddr": "^6.1.0",
Expand Down
8 changes: 4 additions & 4 deletions test/config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ describe('configuration', () => {
const options = {
peerInfo,
switch: {
blacklistTTL: 60e3,
blackListAttempts: 5,
denyTTL: 60e3,
denyAttempts: 5,
maxParallelDials: 100,
maxColdCalls: 50,
dialTimeout: 30e3
Expand All @@ -188,8 +188,8 @@ describe('configuration', () => {

expect(validateConfig(options)).to.deep.include({
switch: {
blacklistTTL: 60e3,
blackListAttempts: 5,
denyTTL: 60e3,
denyAttempts: 5,
maxParallelDials: 100,
maxColdCalls: 50,
dialTimeout: 30e3
Expand Down

0 comments on commit 684f283

Please sign in to comment.