[allways/commitments.py:123](allways/commitments.py#L123) and [allways/commitments.py:144](allways/commitments.py#L144) both compute the same `{hotkey: uid}` map. Extract `_metagraph_hotkey_to_uid(metagraph)` once so callers cannot accidentally use a stale map.
allways/commitments.py:123 and allways/commitments.py:144 both compute the same
{hotkey: uid}map. Extract_metagraph_hotkey_to_uid(metagraph)once so callers cannot accidentally use a stale map.