Skip to content

Commit e37285b

Browse files
committed
fix event-type filtration bug
1 parent 684c1ae commit e37285b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eventrouter/default.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ func New(appCache cache.Cache, sink eventsink.Sink, config *Config) (Router, err
3232
}
3333

3434
func (r *router) Route(msg *events.Envelope) error {
35+
eventType := msg.GetEventType()
36+
3537
if _, ok := r.selectedEvents[eventType.String()]; !ok {
3638
// Ignore this event since we are not interested
3739
return nil
3840
}
41+
3942
_ = r.sink.Write(msg)
4043

4144
return nil

0 commit comments

Comments
 (0)