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

Export LameDuckShutdown so that it is accessible when embedding NATS #5660

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

neilalexander
Copy link
Member

Otherwise this function isn't available when embedding the NATS Server, where using SIGUSR2 likely isn't appropriate.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner July 16, 2024 13:35
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.

To minimize changes just make public one call private one.

server/server.go Outdated Show resolved Hide resolved
…when embedding NATS

Otherwise this function isn't available when embedding the NATS Server,
where using `SIGUSR2` likely isn't appropriate.

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander changed the title Rename lameDuckMode to LameDuckShutdown so that it is accessible when embedding NATS Export LameDuckShutdown so that it is accessible when embedding NATS Jul 16, 2024
@derekcollison derekcollison self-requested a review July 16, 2024 21:07
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 fd284c8 into main Jul 16, 2024
5 checks passed
@derekcollison derekcollison deleted the neil/ldmapi branch July 16, 2024 21:08
wallyqs added a commit that referenced this pull request Jul 16, 2024
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