Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPEC/DHT.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If no `callback` is passed, a promise is returned.
```JavaScript
var id = PeerId.create()

ipfs.dht.findPeer(id, function (err, peerInfo) {
ipfs.dht.findpeer(id, function (err, peerInfo) {
// peerInfo will contain the multiaddrs of that peer
})
```
Expand All @@ -44,7 +44,7 @@ If no `callback` is passed, a promise is returned.
**Example:**

```JavaScript
ipfs.dht.findProvs(multihash, function (err, peerInfos) {})
ipfs.dht.findprovs(multihash, function (err, peerInfos) {})
```

A great source of [examples][] can be found in the tests for this API.
Expand Down