mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix MatchFilterHandler
This commit is contained in:
parent
8d7aa9078f
commit
7adacd1bd2
1 changed files with 2 additions and 2 deletions
|
|
@ -172,8 +172,8 @@ func MatchFilterHandler(key string, value interface{}, h Handler) Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < len(r.Ctx); i += 2 {
|
for i := 0; i < len(r.Ctx); i += 2 {
|
||||||
if r.Ctx[i] == key {
|
if r.Ctx[i] == key && r.Ctx[i+1] == value {
|
||||||
return r.Ctx[i+1] == value
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue