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

Commit

Permalink
Merge pull request #309 from ipfs/greenkeeper-ipfs-bitswap-0.4.1
Browse files Browse the repository at this point in the history
ipfs-bitswap@0.4.1 breaks build ⚠️
  • Loading branch information
dignifiedquire committed Jun 6, 2016
2 parents 2bd7f50 + 7850dbb commit bddefb1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"glob": "^7.0.3",
"hapi": "^13.4.1",
"ipfs-api": "^4.1.0",
"ipfs-bitswap": "^0.4.0",
"ipfs-bitswap": "^0.4.1",
"ipfs-block": "^0.3.0",
"ipfs-block-service": "^0.4.0",
"ipfs-merkle-dag": "^0.6.0",
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/bitswap/wantlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = Command.extend({
if (err) {
throw err
}

res.Keys.forEach((k) => console.log(k))
})
})
Expand Down
6 changes: 1 addition & 5 deletions src/core/ipfs/bitswap.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
'use strict'

const bs58 = require('bs58')

const OFFLINE_ERROR = require('../utils').OFFLINE_ERROR

function formatWantlist (list) {
return Array.from(list).map((el) => {
return bs58.encode(new Buffer(el[0], 'hex'))
})
return Array.from(list).map((e) => e[0])
}

module.exports = function bitswap (self) {
Expand Down
2 changes: 1 addition & 1 deletion test/cli/test-bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('bitswap', function () {
nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'bitswap', 'wantlist'], {env})
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
// expect(exitcode).to.equal(0)
expect(exitcode).to.equal(0)
expect(stdout).to.be.eql([
key
])
Expand Down

0 comments on commit bddefb1

Please sign in to comment.