Remove logging

This commit is contained in:
Jacob Karlsson 2024-06-13 17:16:27 +02:00
parent 05c381def5
commit fbfbb335cc
1 changed files with 3 additions and 4 deletions

View File

@ -188,15 +188,14 @@ createPeer({ path }).then(({ peer, account: globalAccountID }) => {
pull( pull(
pull.count(), pull.count(),
pull.asyncMap((i, cb) => { pull.asyncMap((i, cb) => {
// ideally we'd detect peer.db.onRecordAdded here but i couldn't figure out how to convert the obz into a pull stream // ideally we'd detect peer.db.onRecordAdded here instead of polling but i couldn't figure out how to convert the obz into a pull stream
setTimeout(() => cb(null, i), 500) setTimeout(() => cb(null, i), 2000)
}), }),
), ),
]) ])
) )
for await (const [connections, i] of awaitable(recordsAdded)) { for await (const [connections] of awaitable(recordsAdded)) {
console.log('got conns', connections, i)
const connInfo = await Promise.all(connections.map(async (conn) => { const connInfo = await Promise.all(connections.map(async (conn) => {
const [multiaddr] = conn const [multiaddr] = conn
const parts = [...multiaddr.matchAll(/\w{44}/g)].map(r => r[0]) const parts = [...multiaddr.matchAll(/\w{44}/g)].map(r => r[0])