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
I am using an async migration runner which means that I need to run async code inside the migrate callback. Sure, Runtime::block_on, whatever, but that turns out it blows up because it's already being run on a runtime thread.
This is because the migrate callback is called on an async thread (!), which is certainly a bug. The fix to this is to run it in spawn_blocking and/or switch the callback to be itself asynchronous (which is plausibly a pain in the ass because this stuff always is).