Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: only pass options to bitswap as last arg
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Feb 15, 2018
1 parent 201e2d4 commit 4069995
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/components/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ module.exports = (self) => {
self._bitswap = new Bitswap(
self._libp2pNode,
self._repo.blocks,
Object.assign({
statsEnabled: true
}, self._peerInfoBook)
{ statsEnabled: true }
)

self._bitswap.start()
Expand Down

0 comments on commit 4069995

Please sign in to comment.