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

Commit 3c08aa2

Browse files
vasco-santosAlan Shaw
authored and
Alan Shaw
committed
fix: change find provs options test (#416)
1 parent 4d48fdb commit 3c08aa2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SPEC/DHT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ A great source of [examples][] can be found in the tests for this API.
7171

7272
##### JavaScript - `ipfs.dht.get(key, [callback])`
7373

74-
Where `key` is a string.
74+
Where `key` is a Buffer.
7575

7676
`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.
7777

@@ -115,7 +115,7 @@ A great source of [examples][] can be found in the tests for this API.
115115

116116
##### JavaScript - `ipfs.dht.put(key, value, [callback])`
117117

118-
Where `key` is a string and `value` can be of any type.
118+
Where `key` is a Buffer and `value` is a Buffer.
119119

120120
`callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful.
121121

js/src/dht/findprovs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = (createCommon, options) => {
7272

7373
it('should take options to override timeout config', function (done) {
7474
const options = {
75-
maxTimeout: 1
75+
timeout: 1
7676
}
7777
waterfall([
7878
(cb) => fakeCid(cb),

0 commit comments

Comments
 (0)