From f333eeb1e68bfb25d23d91f93a35d2fbadaf3340 Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 12 Jan 2026 08:43:06 +0000 Subject: [PATCH] Fix infinite recursion in get_by_cid Remove self-recursive call that caused infinite loop when looking up IPFS CIDs. Co-Authored-By: Claude Opus 4.5 --- cache_manager.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cache_manager.py b/cache_manager.py index cfeb032..f42d039 100644 --- a/cache_manager.py +++ b/cache_manager.py @@ -428,10 +428,6 @@ class L1CacheManager: def get_by_cid(self, cid: str) -> Optional[Path]: """Get cached file path by cid or IPFS CID. Falls back to IPFS if not in local cache.""" - # If it looks like an IPFS CID, use get_by_cid instead - if self._is_ipfs_cid(cid): - return self.get_by_cid(cid) - # Check index first (Redis then local) node_id = self._get_content_index(cid) if node_id: