Skip to content

Commit 84dfae9

Browse files
committed
[pubsub] return subscription id in memory implementation
1 parent 5ddd58e commit 84dfae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pubsub/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (m *memoryPubSub) Subscribe(ctx context.Context, topic string) (*Subscripti
103103
m.wg.Done()
104104
}()
105105

106-
return &Subscription{ctx: subCtx, cancel: cancel, ch: ch}, nil
106+
return &Subscription{id: id, ctx: subCtx, cancel: cancel, ch: ch}, nil
107107
}
108108

109109
func (m *memoryPubSub) subscribe(id, topic string, ch chan Message) {

0 commit comments

Comments
 (0)