mirror of https://codeberg.org/pzp/zooboard.git
Remove logging
This commit is contained in:
parent
05c381def5
commit
fbfbb335cc
7
main.js
7
main.js
|
@ -188,15 +188,14 @@ createPeer({ path }).then(({ peer, account: globalAccountID }) => {
|
|||
pull(
|
||||
pull.count(),
|
||||
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
|
||||
setTimeout(() => cb(null, i), 500)
|
||||
// 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), 2000)
|
||||
}),
|
||||
),
|
||||
])
|
||||
)
|
||||
|
||||
for await (const [connections, i] of awaitable(recordsAdded)) {
|
||||
console.log('got conns', connections, i)
|
||||
for await (const [connections] of awaitable(recordsAdded)) {
|
||||
const connInfo = await Promise.all(connections.map(async (conn) => {
|
||||
const [multiaddr] = conn
|
||||
const parts = [...multiaddr.matchAll(/\w{44}/g)].map(r => r[0])
|
||||
|
|
Loading…
Reference in New Issue