Skip to content

Commit

Permalink
feat: new super simplified API
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias authored and dryajov committed Oct 23, 2017
1 parent ad1e6ff commit 3cc9673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ class Node extends EventEmitter {

dial (peer, protocol, callback) {
assert(this.isStarted(), NOT_STARTED_ERROR_MESSAGE)
const peerInfo = this._getPeerInfo(peer)

if (typeof protocol === 'function') {
callback = protocol
Expand Down

0 comments on commit 3cc9673

Please sign in to comment.