denodrivers / mongo

🍃 MongoDB driver for Deno 🦕
https://deno.land/x/mongo
MIT License
514 stars 95 forks source link

feat: Propagate rejections up to the functions that caused them #401

Open jespertheend opened 1 year ago

jespertheend commented 1 year ago

Fixes #400

Unfortunately there are also some errors that might occur before the header has been parsed, making it impossible to know which specific message should be rejected. I've simply made it so it rejects all pending messages in that case.

I'll try this out in production for a while to see how things go.

lucsoft commented 1 month ago

@jespertheend are you looking forward to finishing this?