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:
1 parent
8043d86bf2
commit
33b2fa263e
1 file changed
+3
-1
+3
-1
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user