all: simplify switches (#17267)
* all: simplify switches * silly mistake
This commit is contained in:
committed by
Péter Szilágyi
parent
273c7a9dc4
commit
d42ce0f2c1
@ -338,8 +338,7 @@ func (es *EventSystem) broadcast(filters filterIndex, ev interface{}) {
|
||||
}
|
||||
}
|
||||
case *event.TypeMuxEvent:
|
||||
switch muxe := e.Data.(type) {
|
||||
case core.PendingLogsEvent:
|
||||
if muxe, ok := e.Data.(core.PendingLogsEvent); ok {
|
||||
for _, f := range filters[PendingLogsSubscription] {
|
||||
if e.Time.After(f.created) {
|
||||
if matchedLogs := filterLogs(muxe.Logs, nil, f.logsCrit.ToBlock, f.logsCrit.Addresses, f.logsCrit.Topics); len(matchedLogs) > 0 {
|
||||
|
Reference in New Issue
Block a user