init server with dispatcher's runtime

This commit is contained in:
appflowy
2022-01-07 23:00:23 +08:00
parent 287698be9e
commit 1e0cef41a9
15 changed files with 102 additions and 65 deletions

View File

@ -26,7 +26,7 @@ pub extern "C" fn init_sdk(path: *mut c_char) -> i64 {
let path: &str = c_str.to_str().unwrap();
let server_config = get_client_server_configuration().unwrap();
let config = FlowySDKConfig::new(path, server_config, "appflowy", None).log_filter("debug");
let config = FlowySDKConfig::new(path, server_config, "appflowy").log_filter("debug");
*FLOWY_SDK.write() = Some(Arc::new(FlowySDK::new(config)));
0