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

Commit

Permalink
fix: change find provs options test (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and alanshaw committed Dec 11, 2018
1 parent 4d48fdb commit 3c08aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SPEC/DHT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion js/src/dht/findprovs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3c08aa2

Please sign in to comment.