Skip to content

Commit

Permalink
Add Expires time to Confirm events
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed Aug 18, 2024
1 parent 5f87fe1 commit 6f3ed3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ func (m *Msg) Ack(ctx context.Context) error {
}

for replySubject := range m.replyConfirms {
confirmEvent, err := NewEvent(WithSubject(replySubject), WithData(confirmMsg))
confirmEvent, err := NewEvent(
WithSubject(replySubject),
WithData(confirmMsg),
WithExpiresAt(30*time.Second),
)
if err != nil {
return err
}
Expand Down

0 comments on commit 6f3ed3e

Please sign in to comment.