Skip to content

Commit 6ac4356

Browse files
committed
util/eventbus: simplify some reflect in Bus.pump
Updates #cleanup Change-Id: Ib7b497e22c6cdd80578c69cf728d45754e6f909e Signed-off-by: Brad Fitzpatrick <[email protected]>
1 parent 336df56 commit 6ac4356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/eventbus/bus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (b *Bus) pump(ctx context.Context) {
134134
// queue space for it.
135135
for !vals.Empty() {
136136
val := vals.Peek()
137-
dests := b.dest(reflect.ValueOf(val.Event).Type())
137+
dests := b.dest(reflect.TypeOf(val.Event))
138138

139139
if b.routeDebug.active() {
140140
clients := make([]*Client, len(dests))

0 commit comments

Comments
 (0)