Theme map lookup

This commit is contained in:
gizak
2015-09-21 03:11:58 -04:00
parent 1cb28b0a3c
commit 196d9aae34
7 changed files with 103 additions and 20 deletions

View File

@@ -233,8 +233,7 @@ func (es *EvtStream) Loop() {
es.RLock()
defer es.RUnlock()
if pattern := es.match(a.Path); pattern != "" {
h := es.Handlers[pattern]
h(a)
es.Handlers[pattern](a)
}
}(e)
}