From 33b2fa263eb79b7c4a57b440cac40cf204fef74e Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 15 Nov 2024 12:25:34 -0800 Subject: [PATCH] fix issue where columns fail to load on first failure This fixes an issue where if one of the columns fail to load, all other columns fail to load. This is because we are too aggressive with the early exit on failure. To reproduce: $ notedeck --dbpath what With existing columns in an existing data path. Signed-off-by: William Casarin --- src/timeline/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timeline/mod.rs b/src/timeline/mod.rs index cf1e864..ca7a76b 100644 --- a/src/timeline/mod.rs +++ b/src/timeline/mod.rs @@ -580,7 +580,9 @@ pub fn setup_initial_nostrdb_subs( columns: &mut Columns, ) -> Result<()> { for timeline in columns.timelines_mut() { - setup_timeline_nostrdb_sub(ndb, note_cache, timeline)?; + if let Err(err) = setup_timeline_nostrdb_sub(ndb, note_cache, timeline) { + error!("setup_initial_nostrdb_subs: {err}"); + } } Ok(())