diff --git a/SPEC/DHT.md b/SPEC/DHT.md index 606d8d212a..b039e88a6e 100644 --- a/SPEC/DHT.md +++ b/SPEC/DHT.md @@ -71,7 +71,7 @@ A great source of [examples][] can be found in the tests for this API. ##### JavaScript - `ipfs.dht.get(key, [callback])` -Where `key` is a string. +Where `key` is a Buffer. `callback` must follow `function (err, value) {}` signature, where `err` is an error if the operation was not successful. `value` is the value that was stored under that key. @@ -115,7 +115,7 @@ A great source of [examples][] can be found in the tests for this API. ##### JavaScript - `ipfs.dht.put(key, value, [callback])` -Where `key` is a string and `value` can be of any type. +Where `key` is a Buffer and `value` is a Buffer. `callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful. diff --git a/js/src/dht/findprovs.js b/js/src/dht/findprovs.js index 2179d097e9..2d5614ac03 100644 --- a/js/src/dht/findprovs.js +++ b/js/src/dht/findprovs.js @@ -72,7 +72,7 @@ module.exports = (createCommon, options) => { it('should take options to override timeout config', function (done) { const options = { - maxTimeout: 1 + timeout: 1 } waterfall([ (cb) => fakeCid(cb),