Concurrent MongoDB testing in Rust

Hi everyone,

I have written my first blog post around my experience with Concurrent MongoDB testing in Rust. I've been using Rust for a little over a year and would love to get some thoughts or improvements on my code. Here's a link to the blog!

The source code for the project is here.

Your abstraction for the find_one_document method is odd. You are calling client.database.collection on every call, which creates a handle to the collection.

What I recommend you is to create an abstraction that creates the collection handle only once, and then run the other methods on top of it.

Thanks for the feedback. Makes sense to only retrieve the collection once and instead of every time we try to find a document, I'll be updating the code!