Skip to content

Commit

Permalink
Merge pull request #2 from jcutrono/master
Browse files Browse the repository at this point in the history
Router was not utilizing caching
  • Loading branch information
pjvds committed Mar 9, 2015
2 parents 9c20115 + 2aa62e4 commit 2edbac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sourcing/ReflectBasedRouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func NewReflectBasedRouter(source interface{}) EventRouter {
} else {
// TODO: Now namer could change between entries
handlers = createEventHandlersForType(sourceType)
// Set cache value for later use
cache[sourceType] = handlers
}

return &ReflectBasedRouter{
Expand Down

0 comments on commit 2edbac2

Please sign in to comment.