Skip to content

Commit 7130392

Browse files
committed
Enable persistent storage in multiverse
And fix an issue that would cause a crash because a timeline wasn't initialized and we tried to unwrap it later.
1 parent d317e5d commit 7130392

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

labs/multiverse/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ async fn main() -> anyhow::Result<()> {
6464
let config_path = env::args().nth(2).unwrap_or("/tmp/".to_owned());
6565
let client = configure_client(server_name, config_path).await?;
6666

67+
let ec = client.event_cache();
68+
ec.subscribe().unwrap();
69+
ec.enable_storage().unwrap();
70+
6771
init_error_hooks()?;
6872
let terminal = init_terminal()?;
6973

@@ -256,6 +260,7 @@ impl App {
256260

257261
if let Err(err) = ui_room.init_timeline_with_builder(builder).await {
258262
error!("error when creating default timeline: {err}");
263+
continue;
259264
}
260265

261266
// Save the timeline in the cache.

0 commit comments

Comments
 (0)