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

Merge periodic flush into connection handler loop #687

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

caspervonb
Copy link
Collaborator

@caspervonb caspervonb commented Nov 3, 2022

Command sender is no longer cloned, so the loop should now break when all senders (client, subscriber, etc) are closed.

Depends on #681

@caspervonb caspervonb marked this pull request as ready for review November 3, 2022 07:28
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

code is fine, but please add tests for dropping the connection.

@caspervonb
Copy link
Collaborator Author

caspervonb commented Nov 4, 2022

Fun thing to test, this is all internal 😁
Can do unit tests that it exits after command tx closes I suppose.

@caspervonb caspervonb force-pushed the merge-flush-into-main-loop branch 5 times, most recently from a700da7 to 1c466f7 Compare November 11, 2022 06:14
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@Jarema Jarema merged commit e920274 into nats-io:main Nov 15, 2022
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.

2 participants