Skip to content

Commit

Permalink
chore: do not try to update stream to have the same behaviour as with…
Browse files Browse the repository at this point in the history
…out create_if_not_exists flag.
  • Loading branch information
mfamador committed Jan 11, 2025
1 parent d947241 commit 36aef85
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/impl/nats/input_jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,8 @@ func (j *jetStreamReader) Connect(ctx context.Context) (err error) {
if natsErr.ErrorCode == nats.JSErrCodeStreamNotFound {
// create stream and subject
_, err = jCtx.AddStream(&nats.StreamConfig{
Name: j.stream,
Subjects: func() []string {
if j.subject == "" {
return nil
}
return []string{j.subject}
}(),
Name: j.stream,
Subjects: []string{"*"},
Storage: func() nats.StorageType {
if j.storageType == "file" {
return nats.FileStorage
Expand Down

0 comments on commit 36aef85

Please sign in to comment.