refactor: dump database to json
This commit is contained in:
@@ -74,6 +74,9 @@ pub trait MaiVersionExt: MaiVersion {
|
||||
#[cfg(feature = "tokio")]
|
||||
use tokio::task::spawn_blocking;
|
||||
|
||||
#[cfg(all(not(feature = "compio"), not(feature = "tokio")))]
|
||||
compile_error!("you must enable one of `compio` or `tokio`");
|
||||
|
||||
async {
|
||||
let req = spawn_blocking(move || Self::api_call(api, agent_extra, data))
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user