Files
piik/prototype
T
AAA bc8d84a924 refactor(core): the time of a turn is an argument, not stored state
Channel and RoomAuthority each kept a stored clock: Channel.now was written
by some Authority entries and read later by reconciliation, host input,
forwarding and host sync, and RoomAuthority.now kept the last dispatch's
time for the later finish and finish_peer calls. Entries that did not write
it judged repair and admission deadlines against an older turn's clock, and
nothing in the types showed which ones.

Both fields are gone. Channel::reconcile, reconcile_transports, host_input,
forward_room, sync_hosts, register_host, stop_host, accept_host,
unsupported_host_input and remove_room take now, and every Authority entry
that reaches them passes its own, including set_service_endpoint and
failed_room_delete, which now take it explicitly. RoomHost::finish and
finish_peer take now: StoredRoomHost passes the dispatched input's time and
its peer turn's time, the Browser binding and its room host pass the same,
and the Server passes its own clock. Tests that assigned the stored clock
pass the argument instead. RequestContext.now, HostInput.now and the wire
are unchanged.
bc8d84a924 · 2026-11-29 11:17:29 +08:00
History
..