actual logging
This commit is contained in:
parent
40f53c6994
commit
1996172107
1 changed files with 3 additions and 1 deletions
|
|
@ -10,7 +10,9 @@ const pubToAddress = {}
|
||||||
/** @type {Set<() => void>} */
|
/** @type {Set<() => void>} */
|
||||||
const listeners = new Set()
|
const listeners = new Set()
|
||||||
|
|
||||||
listeners.add(() => `pubToAddress: ${JSON.stringify(pubToAddress, null, 4)}`)
|
listeners.add(() => {
|
||||||
|
console.log(`pubToAddress: ${JSON.stringify(pubToAddress, null, 4)}`)
|
||||||
|
})
|
||||||
|
|
||||||
const notify = () => listeners.forEach(l => l())
|
const notify = () => listeners.forEach(l => l())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue