hjiayz / async_once

async once tool for lazy_static
Other
34 stars 4 forks source link

add dependency sea-orm and then not work #3

Open velasco300 opened 2 years ago

velasco300 commented 2 years ago

add dependency sea-orm and then not work

junbl commented 2 years ago

I have this same issue. Spent some time trying to track it down without a lot of luck. I determined that it's only when the "sqlx-mysql" feature is enabled. The actual error is that a 'static dyn Future isn't Send/Sync---pretty much the same error you'd get if you used a Pin<Box<dyn Future<>>> instead of the AsyncOnce.