Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "never expires" TTL #6319

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Add support for "never expires" TTL #6319

merged 2 commits into from
Jan 7, 2025

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Jan 3, 2025

A message with Nats-TTL: never will never expire, even if the MaxAge policy is set.

Signed-off-by: Neil Twigg [email protected]

server/filestore.go Outdated Show resolved Hide resolved
@neilalexander neilalexander force-pushed the neil/ttlnever branch 2 times, most recently from e3b4f91 to 44c663c Compare January 6, 2025 18:18
@neilalexander neilalexander marked this pull request as ready for review January 6, 2025 18:18
@neilalexander neilalexander requested a review from a team as a code owner January 6, 2025 18:18
@MauriceVanVeen MauriceVanVeen self-assigned this Jan 6, 2025
Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

A message with a `Nats-TTL` of a negative number will never expire, even
if the `MaxAge` policy is set.

Signed-off-by: Neil Twigg <[email protected]>
@neilalexander neilalexander marked this pull request as draft January 7, 2025 18:11
@neilalexander neilalexander force-pushed the neil/ttlnever branch 2 times, most recently from 88f7988 to e23f805 Compare January 7, 2025 18:25
@neilalexander neilalexander marked this pull request as ready for review January 7, 2025 19:11
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekcollison derekcollison merged commit 519943f into main Jan 7, 2025
5 checks passed
@derekcollison derekcollison deleted the neil/ttlnever branch January 7, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants