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
..
2026-11-09 08:06:32 -07:00
2026-03-24 10:52:20 -04:00
2026-10-14 15:56:12 -07:00
2026-01-23 15:49:45 -08:00
2026-05-14 15:55:05 -07:00
2026-11-09 16:09:45 -08:00
2026-06-23 11:10:59 -07:00
2026-01-23 15:49:45 -08:00
2026-09-30 21:41:37 -07:00
2026-09-30 10:44:22 -07:00
2026-09-01 13:15:45 -06:00
2026-01-23 15:49:45 -08:00
2026-08-08 13:02:06 -07:00
2026-08-19 16:25:50 -07:00
2026-09-01 13:15:45 -06:00
2026-01-23 15:49:45 -08:00
2026-09-14 07:20:27 -07:00
2026-11-10 11:43:07 -08:00
2026-07-07 06:01:08 -07:00
2026-08-08 13:02:06 -07:00
2026-01-23 15:49:45 -08:00
2026-09-01 13:15:45 -06:00
2026-09-14 18:58:41 -07:00
2026-03-06 13:32:03 -08:00
2026-08-04 10:47:04 +01:00
2026-08-13 13:04:53 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-09-16 16:01:50 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-09-18 11:46:09 -04:00
2026-01-23 15:49:45 -08:00
2026-09-01 13:15:45 -06:00
2026-03-23 12:54:38 +00:00
2026-08-08 13:02:06 -07:00
2026-10-26 08:48:36 -07:00
2026-09-17 15:23:49 -07:00
2026-07-01 10:02:05 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-09-14 21:06:33 -07:00
2026-09-01 13:15:45 -06:00
2026-10-23 17:28:23 -04:00
2026-03-06 13:32:03 -08:00
2026-03-06 13:32:03 -08:00
2026-01-23 15:49:45 -08:00
2026-10-23 11:45:38 -07:00
2026-07-30 12:28:22 -07:00
2026-01-23 15:49:45 -08:00
2026-10-16 18:02:33 -07:00
2026-10-13 15:55:43 -07:00
2026-03-06 13:32:03 -08:00
2026-08-08 13:02:06 -07:00
2026-09-21 09:23:51 -06:00