MCPcopy Create free account
hub / github.com/dicej/tagger / deduplicate_dirty

Function deduplicate_dirty

server/src/sync.rs:428–567  ·  view source on GitHub ↗

Scan the collection of media items in `all`, grouping them by similarity and deduplicating each group with at least one `dirty` item in it, recording the results in the database.

(
    conn: &AsyncMutex<SqliteConnection>,
    image_locks: &LockMap<Arc<str>, ()>,
    image_dir: &str,
    cache_dir: &str,
    mut dirty: HashMap<String, Item>,
    all: Vec<Item>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

deduplicateFunction · 0.85

Calls 2

group_similarFunction · 0.70
deduplicateFunction · 0.70

Tested by

no test coverage detected