~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Two long topics that share their first 64 characters are both kept

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

words drops duplicates before the cut to 64 characters. Topics "a"×64 + "x" and "a"×64 + "y" both pass, and both become "a"×64, so the profile holds the same topic twice. tests/group_config.rs:95 cuts only one long topic.

How to see it

Read against docs/fresh at 4636e6d, the code at: group_config.rs:136-147 (words), :226-229. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Cut each word to its length first, then drop duplicates (pass the cut into words).

Where

The host, as built from 4636e6d. Found while checking the docs against the code.