Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
  • Loading branch information
vasco-santos and jacobheun committed Apr 16, 2020
1 parent 655dd74 commit dbc6210
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
* [`metrics.forPeer`](#metricsforpeer)
* [`metrics.forProtocol`](#metricsforprotocol)
* [Events](#events)
* [`libp2p`](#eventslibp2p)
* [`libp2p.peerStore`](#eventslibp2ppeerStore)
* [`libp2p`](#libp2p)
* [`libp2p.peerStore`](#libp2ppeerStore)
* [Types](#types)
* [`Stats`](#stats)

Expand Down Expand Up @@ -1144,19 +1144,19 @@ This event will be triggered anytime we are disconnected from another peer, rega

- `peerId`: instance of [`PeerId`][peer-id]

#### Knownw multiaddrs for a peer change
#### Known multiaddrs for a peer change

`libp2p.peerStore.on('change:multiaddrs', ({ peerId, multiaddrs}) => {})`

- `peerId`: instance of [`PeerId`][peer-id]
- `multiaddrs`: array of known [`multiaddr`][multiaddr] for a the peer
- `multiaddrs`: array of known [`multiaddr`][multiaddr] for the peer

#### Knownw protocols for a peer change
#### Known protocols for a peer change

`libp2p.peerStore.on('change:protocols', ({ peerId, protocols}) => {})`

- `peerId`: instance of [`PeerId`][peer-id]
- `protocols`: array of known supported protocols for the peer (string identifiers)
- `protocols`: array of known, supported protocols for the peer (string identifiers)

## Types

Expand Down

0 comments on commit dbc6210

Please sign in to comment.