util/eventbus: track additional event context in publish queue

Updates #15160

Signed-off-by: David Anderson <dave@tailscale.com>
This commit is contained in:
David Anderson
2025-03-05 10:39:06 -08:00
committed by Dave Anderson
parent bf40bc4fa0
commit a1192dd686
3 changed files with 23 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ func (c *Client) deleteSubscriber(t reflect.Type, s *subscribeState) {
c.bus.unsubscribe(t, s)
}
func (c *Client) publish() chan<- any {
func (c *Client) publish() chan<- publishedEvent {
return c.bus.write
}