commit 33b2fa263eb79b7c4a57b440cac40cf204fef74e
parent 8043d86bf252f53c97470eeb1f641aaa7d083d27
Author: William Casarin <jb55@jb55.com>
Date: Fri, 15 Nov 2024 12:25:34 -0800
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 <jb55@jb55.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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(())