diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-26 22:47:11 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-26 22:47:11 +0100 |
commit | 0e0d05a59b3db59d065ade4a08792125b891dc1a (patch) | |
tree | 08597788231ae2fa88d8375938e8f304643da737 /import/src | |
parent | ecee928f22ac5c0bc9dc2cbe775ebce3e4b808e6 (diff) | |
download | jellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar jellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar.bz2 jellything-0e0d05a59b3db59d065ade4a08792125b891dc1a.tar.zst |
remove old nodes during import
Diffstat (limited to 'import/src')
-rw-r--r-- | import/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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..."); |