mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-30 00:29:48 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user