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

Commit

Permalink
code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 12, 2016
1 parent e804947 commit d146326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/cli/commands/bitswap/unwant.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = Command.extend({
throw err
}

// TODO: implement
throw new Error('Not implemented yet')
})
}
})
7 changes: 1 addition & 6 deletions src/core/ipfs/go-offline.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ module.exports = function goOffline (self) {
return (cb) => {
self._blockS.goOffline()
self._bitswap.stop()
self.libp2p.stop((err) => {
if (err) {
log('Error trying to go offline', err)
}
cb()
})
self.libp2p.stop(cb)
}
}
5 changes: 1 addition & 4 deletions src/http-api/resources/bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ exports.unwant = {
parseArgs: parseKey,

handler: (request, reply) => {
const key = request.pre.args.key

request.server.app.ipfs.bitswap.unwant(key)
reply()
reply(boom.badRequrest(new Error('Not implemented yet')))
}
}

0 comments on commit d146326

Please sign in to comment.