fixup redis broker
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
c7b6158602
commit
dbbdd81a57
1
redis.go
1
redis.go
@ -225,6 +225,7 @@ func (b *Broker) BatchSubscribe(ctx context.Context, topic string, handler broke
|
|||||||
// Subscribe returns a broker.Subscriber for the topic and handler
|
// Subscribe returns a broker.Subscriber for the topic and handler
|
||||||
func (b *Broker) Subscribe(ctx context.Context, topic string, handler broker.Handler, opts ...broker.SubscribeOption) (broker.Subscriber, error) {
|
func (b *Broker) Subscribe(ctx context.Context, topic string, handler broker.Handler, opts ...broker.SubscribeOption) (broker.Subscriber, error) {
|
||||||
s := &Subscriber{
|
s := &Subscriber{
|
||||||
|
ctx: ctx,
|
||||||
topic: topic,
|
topic: topic,
|
||||||
handle: handler,
|
handle: handler,
|
||||||
opts: b.opts,
|
opts: b.opts,
|
||||||
|
Loading…
Reference in New Issue
Block a user