mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
The eventbus routes events by exact type, so a subscriber of *T never sees a T. Add a test that type-checks the module for linux, windows and darwin and fails if any event type is used with eventbus or eventbustest both by value and by pointer. To keep memory use down, it drops function bodies outside the packages that import those. It skips in race builds because of a go/types data race, golang/go#81122. Updates #22307 Change-Id: Ia7486c43936f367f8767ad9c8750faa9b6bdf8f0 Signed-off-by: Brad Fitzpatrick <[email protected]>