mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-22 11:01:54 +00:00
util/eventbus: make internal queue a generic type
In preparation for making the queues carry additional event metadata. Updates #15160 Signed-off-by: David Anderson <dave@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
96202a7c0c
commit
bf40bc4fa0
@@ -78,7 +78,7 @@ func (b *Bus) Close() {
|
||||
}
|
||||
|
||||
func (b *Bus) pump(ctx context.Context) {
|
||||
var vals queue
|
||||
var vals queue[any]
|
||||
acceptCh := func() chan any {
|
||||
if vals.Full() {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user