Skip to content

Commit

Permalink
Re-added the unlock since now returning rather than just loggging the…
Browse files Browse the repository at this point in the history
… transform error.

Signed-off-by: Jean-Noël Moyne <[email protected]>
  • Loading branch information
jnmoyne committed Jun 21, 2024
1 parent 31f9e8e commit 0960fb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,7 @@ func (mset *stream) updateWithAdvisory(config *StreamConfig, sendAdvisory bool)
var err error
si.trs[i], err = NewSubjectTransform(s.SubjectTransforms[i].Source, s.SubjectTransforms[i].Destination)
if err != nil {
mset.mu.Unlock()
return fmt.Errorf("unable to get subject transform for source: %v", err)
}
}
Expand Down

0 comments on commit 0960fb1

Please sign in to comment.