We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 064b794 commit 70c9bbcCopy full SHA for 70c9bbc
libsql/src/database.rs
@@ -691,17 +691,16 @@ impl Database {
691
};
692
use tokio::sync::Mutex;
693
694
- let _ = tokio::task::block_in_place(move || {
+ tokio::task::block_in_place(move || {
695
let rt = tokio::runtime::Builder::new_current_thread()
696
.enable_all()
697
.build()
698
.unwrap();
699
rt.block_on(async {
700
- // we will ignore if any errors occurred during the bootstrapping the db,
701
- // because the client could be offline when trying to connect.
702
- let _ = db.bootstrap_db().await;
+ db.bootstrap_db().await?;
+ Ok::<(), crate::Error>(())
703
})
704
- });
+ })?;
705
706
let local = db.connect()?;
707
0 commit comments