You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Messaging.ts has six console.log calls — two in start and the remaining four in the business-specific consumePoetTimestampsDownloaded and consumeClaimsDownloaded functions.
The logs in the start function are needed in case of unexpected failure. We can sort them out by letting the consumer of the RabbitMQ client (in our case, all our module roots) pass the callbacks instead of the client having hard-coded ones.
This code will be duplicated across modules, so we may want to create a Helper file to reduce code duplication a bit.
The calls in the business-specific functions act like warnings, akin to a compiler letting one know a function is being called with the incorrect arguments.
We need to decide whether we want to simply get rid of them or implement a mechanism for the consume* functions to provide feedback about dropped messages (such as a new argument to the function, a callback; or the Messaging itself taking it).
Messaging.ts has six
console.log
calls — two instart
and the remaining four in the business-specificconsumePoetTimestampsDownloaded
andconsumeClaimsDownloaded
functions.The logs in the
start
function are needed in case of unexpected failure. We can sort them out by letting the consumer of the RabbitMQ client (in our case, all our module roots) pass the callbacks instead of the client having hard-coded ones.It could look like this:
This code will be duplicated across modules, so we may want to create a Helper file to reduce code duplication a bit.
The calls in the business-specific functions act like warnings, akin to a compiler letting one know a function is being called with the incorrect arguments.
We need to decide whether we want to simply get rid of them or implement a mechanism for the
consume*
functions to provide feedback about dropped messages (such as a new argument to the function, a callback; or the Messaging itself taking it).Could look like this:
Ideally we want to implement this one after #66 to avoid introducing more noise.
The text was updated successfully, but these errors were encountered: