logging
This commit is contained in:
parent
74fa91c1b0
commit
40f53c6994
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,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)}`)
|
||||||
|
|
||||||
const notify = () => listeners.forEach(l => l())
|
const notify = () => listeners.forEach(l => l())
|
||||||
|
|
||||||
/** @type {Set<string>} */
|
/** @type {Set<string>} */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue