Skip to content

Commit

Permalink
feat: async peerstore (#124)
Browse files Browse the repository at this point in the history
Refactors interfaces and classes used by `libp2p-interfaces` to use the async peer store from #1058

BREAKING CHANGE: peerstore methods are now all async
  • Loading branch information
achingbrain committed Dec 31, 2021
1 parent 9c6cdb8 commit ac2e2b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-floodsub#readme",
"devDependencies": {
"@chainsafe/libp2p-noise": "^4.1.1",
"@chainsafe/libp2p-noise": "^5.0.0",
"@types/debug": "^4.1.5",
"aegir": "^36.0.2",
"benchmark": "^2.1.4",
"buffer": "^6.0.3",
"chai": "^4.3.4",
"ipfs-utils": "^9.0.2",
"it-pair": "^1.0.0",
"libp2p": "^0.35.0",
"libp2p-interfaces-compliance-tests": "^2.0.3",
"libp2p": "libp2p/js-libp2p#feat/async-peerstore",
"libp2p-interfaces-compliance-tests": "^4.0.2",
"libp2p-mplex": "^0.10.3",
"libp2p-websockets": "^0.16.0",
"multiaddr": "^10.0.0",
Expand All @@ -65,7 +65,7 @@
},
"dependencies": {
"debug": "^4.2.0",
"libp2p-interfaces": "^2.0.1",
"libp2p-interfaces": "^4.0.2",
"time-cache": "^0.3.0",
"uint8arrays": "^3.0.0"
},
Expand Down
8 changes: 4 additions & 4 deletions test/floodsub.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ describe('floodsub', () => {
floodsub = new Floodsub(libp2p, defOptions)
})

beforeEach(() => {
floodsub.start()
beforeEach(async () => {
await floodsub.start()
})

afterEach(() => {
afterEach(async () => {
sinon.restore()
floodsub.stop()
await floodsub.stop()
})

it('checks cache when processing incoming message', async function () {
Expand Down

0 comments on commit ac2e2b7

Please sign in to comment.