Fix inaccuracy

This commit is contained in:
phillmac 2019-09-20 08:01:57 +10:00 committed by GitHub
parent 9d639eeaaa
commit d800e5d817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
API.md
View File

@ -609,7 +609,7 @@ Emitted after an entry was added locally to the database. *hash* is the IPFS has
db.events.on('peer', (peer) => ... )
```
Emitted when a new peer connects via ipfs pubsub. *peer* is the new peer, an instance of [`peerInfo`](https://github.com/libp2p/js-peer-info)
Emitted when a new peer connects via ipfs pubsub. *peer* is a string containing the new peer's id
### `closed`
Emitted once the database has finished closing.