net/netmon: make ChangeDelta event not a pointer (#17112)

This makes things work slightly better over the eventbus.

Also switches ipnlocal to use the event over the eventbus instead of the
direct callback.

Updates #15160

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
This commit is contained in:
Claus Lensbøl
2025-09-17 10:49:41 -04:00
committed by GitHub
parent 48029a897d
commit df362d0a08
4 changed files with 60 additions and 41 deletions

View File

@@ -81,7 +81,7 @@ func TestMonitorInjectEventOnBus(t *testing.T) {
mon.Start()
mon.InjectEvent()
if err := eventbustest.Expect(tw, eventbustest.Type[*ChangeDelta]()); err != nil {
if err := eventbustest.Expect(tw, eventbustest.Type[ChangeDelta]()); err != nil {
t.Error(err)
}
}