Does not work using IPFS API
fazo96 opened this issue · 2 comments
fazo96 commented
Unfortunately this way of getting the peer ID https://github.com/haadcode/ipfs-pubsub-1on1/blob/master/src/get-peer-id.js#L4 does not play well with IPFS API.
The correct way would be (await ipfs.id()).id
but unfortunately it's an async operation, and getPeerID
is called from a constructor!
I'll see if I can find a good way to fix it
haadcode commented
haadcode commented
Merged to master in OrbitDB too orbitdb/orbitdb#359