Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -3143,6 +3143,7 @@ func (mset *stream) setupMirrorConsumer() error {
}

mirror := mset.mirror
mirrorWg := &mirror.wg

// We want to throttle here in terms of how fast we request new consumers,
// or if the previous is still in progress.
Expand Down Expand Up @@ -3301,7 +3302,7 @@ func (mset *stream) setupMirrorConsumer() error {

// Wait for previous processMirrorMsgs go routine to be completely done.
// If none is running, this will not block.
mirror.wg.Wait()
mirrorWg.Wait()

select {
case ccr := <-respCh:
Expand Down
Loading