fix(bichon-admin): reduce memory usage during data migration

This commit is contained in:
rustmailer
2026-05-16 22:17:03 +08:00
parent 37a38a2910
commit b2a75643da
6 changed files with 511 additions and 161 deletions
+9 -1
View File
@@ -18,6 +18,7 @@
use console::style;
use dialoguer::{theme::ColorfulTheme, Select};
use mimalloc::MiMalloc;
use crate::{migrate::handle_migration, reset::handle_reset_password};
@@ -25,8 +26,15 @@ pub mod meta;
pub mod migrate;
pub mod reset;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
fn main() {
run_interactive();
}
#[tokio::main]
async fn main() {
async fn run_interactive() {
let theme = ColorfulTheme::default();
println!(
"\n{}\n",