actual logging

This commit is contained in:
Daniel Lugo 2020-02-13 19:23:04 -04:00
parent 40f53c6994
commit 1996172107

View file

@ -10,7 +10,9 @@ const pubToAddress = {}
/** @type {Set<() => void>} */
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())