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

@ -38,7 +38,7 @@ impl std::default::Default for FlowySDKTest {
impl FlowySDKTest {
pub fn new(server_config: ClientServerConfiguration, ws: Option<Arc<dyn FlowyRawWebSocket>>) -> Self {
let config = FlowySDKConfig::new(&root_dir(), server_config, &uuid_string(), None).log_filter("debug");
let config = FlowySDKConfig::new(&root_dir(), server_config, &uuid_string()).log_filter("debug");
let sdk = FlowySDK::new(config);
std::mem::forget(sdk.dispatcher());
Self { inner: sdk, ws }