mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-04 08:51:27 +01:00
util/eventbus: simplify some reflect in Bus.pump
Updates #cleanup Change-Id: Ib7b497e22c6cdd80578c69cf728d45754e6f909e Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
336df56f85
commit
6ac4356bce
@ -134,7 +134,7 @@ func (b *Bus) pump(ctx context.Context) {
|
||||
// queue space for it.
|
||||
for !vals.Empty() {
|
||||
val := vals.Peek()
|
||||
dests := b.dest(reflect.ValueOf(val.Event).Type())
|
||||
dests := b.dest(reflect.TypeOf(val.Event))
|
||||
|
||||
if b.routeDebug.active() {
|
||||
clients := make([]*Client, len(dests))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user