generalized event handler

This commit is contained in:
Darien Raymond committed 2017-11-28 23:41:20 +01:00
1 parent 973ce07db9
commit fd8db49dc9
16 files changed
+80 -32

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func NewDefaultDispatcher(ctx context.Context, config *dispatcher.Config) (*Defa
return nil, newError("no space in context")
}
d := &DefaultDispatcher{}
space.OnInitialize(func() error {
space.On(app.SpaceInitializing, func(interface{}) error {
d.ohm = proxyman.OutboundHandlerManagerFromSpace(space)
if d.ohm == nil {
return newError("OutboundHandlerManager is not found in the space")