diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-26 01:09:04 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-26 01:09:04 +0200 |
| commit | 52707f6280bb268102cd60e692c0199a45caf35e (patch) | |
| tree | 1220d39cb30ccc8a58a80f85ba020b5b30bea9b7 /packages/meshbay-node/src/meshbay_node/indexer/group_index.py | |
| parent | 704cfe37506fc5316c997b025004fbc9c4d2a47b (diff) | |
| parent | 2d144d76cee55cf8faaacf196e716a0930dfd7e9 (diff) | |
| download | meshbay-52707f6280bb268102cd60e692c0199a45caf35e.tar.gz | |
Merge branch 'fix/meta-lookup-by-file-id'
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013XSohfUQQiaE77qyFLgSv3
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/indexer/group_index.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/indexer/group_index.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/indexer/group_index.py b/packages/meshbay-node/src/meshbay_node/indexer/group_index.py index 1ce4e0a..25081ef 100644 --- a/packages/meshbay-node/src/meshbay_node/indexer/group_index.py +++ b/packages/meshbay-node/src/meshbay_node/indexer/group_index.py @@ -78,19 +78,6 @@ class GroupIndex: def get_entry(self, file_id: str) -> IndexEntry | None: return self._entries.get(file_id) - def get_entry_by_path(self, path: str) -> IndexEntry | None: - """ - Linear scan — entries are keyed by content id, not path, and nothing - before the Videos app needed to go the other way (a client always - already has the id from index_sync/index_delta). Fine for an - on-demand, per-tile lookup against a few thousand entries; revisit - if a future caller makes this hot. - """ - for entry in self._entries.values(): - if entry.path == path: - return entry - return None - @property def entries(self) -> list[IndexEntry]: return list(self._entries.values()) |