Skip to content

Commit

Permalink
feat(pass-nessage-subject-as-header): removed redundant subject field…
Browse files Browse the repository at this point in the history
… in Options Struct
  • Loading branch information
KernelMrex committed Dec 1, 2023
1 parent 266e409 commit 18b42f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion natsjobs/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type Options struct {
stream string
seq uint64
sub jetstream.Stream
subject string
}

// DelayDuration returns delay duration in a form of time.Duration.
Expand Down
2 changes: 0 additions & 2 deletions natsjobs/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ func (c *Driver) listenerStart() { //nolint:gocognit
item.Options.requeueFn = c.requeue
// sequence needed for the requeue
item.Options.seq = meta.Sequence.Stream
// subject needed to pass it as header
item.Options.subject = m.Subject()

// needed only if delete after ack is true
if c.deleteAfterAck {
Expand Down

0 comments on commit 18b42f9

Please sign in to comment.