@@ -267,7 +267,7 @@ class Libp2p extends EventEmitter {
267
267
}
268
268
269
269
/**
270
- * Dials to the provided peer. If successful, the known `Peer` data of the
270
+ * Dials to the provided peer. If successful, the known metadata of the
271
271
* peer will be added to the nodes `peerStore`
272
272
* @param {PeerId|Multiaddr|string } peer The peer to dial
273
273
* @param {object } options
@@ -280,7 +280,7 @@ class Libp2p extends EventEmitter {
280
280
281
281
/**
282
282
* Dials to the provided peer and handshakes with the given protocol.
283
- * If successful, the known `Peer` data of the peer will be added to the nodes `peerStore`,
283
+ * If successful, the known metadata of the peer will be added to the nodes `peerStore`,
284
284
* and the `Connection` will be returned
285
285
* @async
286
286
* @param {PeerId|Multiaddr|string } peer The peer to dial
@@ -422,7 +422,7 @@ class Libp2p extends EventEmitter {
422
422
* Called whenever peer discovery services emit `peer` events.
423
423
* Known peers may be emitted.
424
424
* @private
425
- * @param {PeerDara } peer
425
+ * @param {{ id: PeerId, multiaddrs: Array<Multiaddr>, protocols: Array<string> } } peer
426
426
*/
427
427
_onDiscoveryPeer ( peer ) {
428
428
if ( peer . id . toB58String ( ) === this . peerId . toB58String ( ) ) {
0 commit comments