Skip to content

Commit b8f3944

Browse files
committed
fix test
1 parent 12481a1 commit b8f3944

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/topic/topiclistenerinternal/stream_listener.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ func (l *streamListener) initVars(sessionIDCounter *atomic.Int64) {
109109
l.hasNewMessagesToSend = make(empty.Chan, 1)
110110
l.sessions = &topicreadercommon.PartitionSessionStorage{}
111111
l.sessionIDCounter = sessionIDCounter
112+
if l.cfg == nil {
113+
l.cfg = &StreamListenerConfig{}
114+
}
112115
}
113116

114117
func (l *streamListener) initStream(ctx context.Context, client TopicClient) error {

0 commit comments

Comments
 (0)