mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
desktop: fix rust
This commit is contained in:
parent
d0dcffefa7
commit
0b9e929f68
1 changed files with 2 additions and 1 deletions
|
|
@ -566,7 +566,8 @@ async fn initialize(app: AppHandle) {
|
|||
// come from any invocation of the sidecar CLI. The progress is captured by a stdout stream interceptor.
|
||||
// Then in the loading task, we wait for sqlite migration to complete before
|
||||
// starting our health check against the server, otherwise long migrations could result in a timeout.
|
||||
let sqlite_done = !sqlite_file_exists().then(|| {
|
||||
let needs_sqlite_migration = !sqlite_file_exists();
|
||||
let sqlite_done = needs_sqlite_migration.then(|| {
|
||||
tracing::info!(
|
||||
path = %opencode_db_path().expect("failed to get db path").display(),
|
||||
"Sqlite file not found, waiting for it to be generated"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue