Skip to content

Commit 22048e6

Browse files
authored
Merge pull request #31 from pmorris-dev/fix-crash-from-migrations-at-startup
fix: use async_runtime to avoid panic crash
2 parents f88bfe2 + aa9212c commit 22048e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl Builder {
215215
let path = path.clone();
216216
let migrator = Arc::clone(migrator);
217217

218-
tokio::spawn(async move {
218+
tauri::async_runtime::spawn(async move {
219219
run_migrations_for_database(app_handle, path, migrator).await;
220220
});
221221
}

0 commit comments

Comments
 (0)