Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Revert "validates and serializes cid argument to provide"
Browse files Browse the repository at this point in the history
This reverts commit a10e3d5.
  • Loading branch information
vmx committed Mar 14, 2018
1 parent bbaac3c commit 16cf746
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/dht/provide.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const promisify = require('promisify-es6')
const CID = require('cids')

module.exports = (send) => {
return promisify((cids, opts, callback) => {
Expand All @@ -21,13 +20,6 @@ module.exports = (send) => {
cids = [cids]
}

// Validate CID(s) and serialize
try {
cids = cids.map(cid => new CID(cid).toBaseEncodedString('base58btc'))
} catch (err) {
return callback(err)
}

send({
path: 'dht/provide',
args: cids,
Expand Down

0 comments on commit 16cf746

Please sign in to comment.