feat(agent): add compatible driver handshake
This commit is contained in:
1 parent
9cbca5fc3a
commit
5df7fbf062
5 files changed
+133
-8
No files matched your search
@@ -44,7 +44,11 @@ async fn main() {
|
||||
let db_path = data_dir.join("dbx.db");
|
||||
let storage = Storage::open(&db_path).await.expect("Failed to open storage");
|
||||
storage.migrate_from_json(&data_dir).await.expect("Failed to migrate JSON data");
|
||||
Arc::new(AppState::new_with_plugin_dir(storage, data_dir.join("plugins")))
|
||||
Arc::new(AppState::new_with_plugin_dir_and_app_version(
|
||||
storage,
|
||||
data_dir.join("plugins"),
|
||||
env!("CARGO_PKG_VERSION"),
|
||||
))
|
||||
};
|
||||
|
||||
// Password hash: env var takes priority, then database
|
||||
|
||||
Reference in new issue
Block a user