Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Apr 6, 2017
1 parent 4b0447b commit e846511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -155,26 +155,26 @@ class Node extends libp2p {

#### `libp2p.contentRouting.findProviders(key, timeout, callback)`

- `key`:
- `key`: Buffer
- `timeout`: Number miliseconds

#### `libp2p.contentRouting.provide(key, timeout, callback)`

- `key`:
- `key`: Buffer
- `timeout`: Number miliseconds

#### `libp2p.dht.put(key, value, callback)`

- `key`:
- `value`:
- `key`: Buffer
- `value`: Buffer

#### `libp2p.dht.get(key, callback)`

- `key`:
- `key`: Buffer

#### `libp2p.dht.getMany(key, nVals, callback)`

- `key`:
- `key`: Buffer
- `nVals`: Number

#### `libp2p.handle(protocol, handlerFunc [, matchFunc])`
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Expand Up @@ -36,9 +36,7 @@ class Node extends EventEmitter {
if (this.modules.connection.muxer) {
let muxers = this.modules.connection.muxer
muxers = Array.isArray(muxers) ? muxers : [muxers]
muxers.forEach((muxer) => {
this.swarm.connection.addStreamMuxer(muxer)
})
muxers.forEach((muxer) => this.swarm.connection.addStreamMuxer(muxer))

// If muxer exists, we can use Identify
this.swarm.connection.reuse()
Expand Down

0 comments on commit e846511

Please sign in to comment.