From 0e0d05a59b3db59d065ade4a08792125b891dc1a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 26 Dec 2023 22:47:11 +0100 Subject: remove old nodes during import --- import/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'import/src/lib.rs') diff --git a/import/src/lib.rs b/import/src/lib.rs index ff687d7..4da1707 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -50,6 +50,8 @@ pub async fn import(db: &Database, fed: &Federation) -> anyhow::Result<()> { import_path(CONF.library_path.clone(), vec![], db, fed) .await .context("indexing")?; + info!("removing old nodes..."); + db.node.clear()?; info!("merging nodes..."); merge_nodes(db).context("merging nodes")?; info!("generating paths..."); -- cgit v1.2.3-70-g09d2