Files
Nick Khyl d7e743f58e util/eventbus: warn when a publisher and subscriber differ only by pointer-ness
The bus routes events by exact type, so a publisher of T never reaches
a subscriber of *T, or vice versa. Such a mismatch compiles fine and
fails silently. Track the publishers of each type on the bus and, when
a publisher or subscriber is registered while the other side has
registrations for the pointer or non-pointer counterpart of its type,
log an [unexpected] warning naming the clients involved. Buses created
by eventbustest.NewBus log to the test and fail it on any [unexpected]
line.

Updates #22307

Signed-off-by: Nick Khyl <[email protected]>
2026-11-10 11:43:07 -08:00
..