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>
This commit is contained in:
William Casarin
2024-11-15 12:25:34 -08:00
parent 8043d86bf2
commit 33b2fa263e

View File

@@ -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(())