Skip to content

Commit

Permalink
Adds EventRecorder creation to Context
Browse files Browse the repository at this point in the history
  • Loading branch information
pjvds committed Aug 10, 2013
1 parent ecc02b5 commit 2796e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sourcing/Context.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ type Context struct {
}

func (ctx *Context) create(id EventSourceId, source interface{}) EventSource {
recorder := NewEventRecorder()
router := NewReflectBasedRouter(source)
eventSource := newEventSource(id, router)

return eventSource
return newEventSource(id, router, recorder)
}

// Creates a new EventSource object that can be used to source events.
Expand Down

0 comments on commit 2796e08

Please sign in to comment.