fix impl interface #346

Merged
vtolstov merged 1 commits from devstigneev/micro:fix_impl_mevent into v3 2024-07-01 12:26:54 +03:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit c65afcea1b - Show all commits

View File

@ -373,6 +373,10 @@ func (m *memoryEvent) SetError(err error) {
m.err = err
}
func (m *memoryEvent) Context() context.Context {
return m.opts.Context
}
func (m *memorySubscriber) Options() broker.SubscribeOptions {
return m.opts
}

View File

@ -305,6 +305,10 @@ func (t *tunEvent) SetError(err error) {
t.err = err
}
func (t *tunEvent) Context() context.Context {
return context.TODO()
}
// NewBroker returns new tunnel broker
func NewBroker(opts ...broker.Option) (broker.Broker, error) {
options := broker.NewOptions(opts...)