Removed old tx pool notification system. Fixes #19

This commit is contained in:
obscuren
2014-05-15 14:05:15 +02:00
parent 2734fc4079
commit 7bf2ae0b11
4 changed files with 9 additions and 20 deletions

View File

@ -46,6 +46,7 @@ func (e *ReactorEvent) Remove(ch chan React) {
// Basic reactor resource
type React struct {
Resource interface{}
Event string
}
// The reactor basic engine. Acts as bridge
@ -81,6 +82,6 @@ func (reactor *ReactorEngine) Unsubscribe(event string, ch chan React) {
func (reactor *ReactorEngine) Post(event string, resource interface{}) {
ev := reactor.patterns[event]
if ev != nil {
ev.Post(React{Resource: resource})
ev.Post(React{Resource: resource, Event: event})
}
}