bikeshedder / deadpool

Dead simple pool implementation for rust with async-await
Apache License 2.0
1.08k stars 137 forks source link

Futures returned by methods on `deadpool_postgres::GenericClient` are not Send #320

Closed and-reas-se closed 6 months ago

and-reas-se commented 6 months ago

In 0.12.1 the futures returned by methods on deadpool_postgres::GenericClient were Send, but they are not in 0.13.1. I'm having trouble migrating to the new version due to this.

Is this an intentional breaking change or a bug?

bikeshedder commented 6 months ago

This is a bug and probably related to the removal of the async_trait crate.

I guess adding a + Send to the GenericClient trait should do the trick. 🤔

bikeshedder commented 6 months ago
bikeshedder commented 6 months ago

I just released deadpool-postgres version 0.13.2 at crates.io which includes the fix ca9200453ddf7ce393863b7821c876f282b827b6: