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

Update LastActivity on connect for routes #4415

Merged
merged 1 commit into from Aug 22, 2023
Merged

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Aug 22, 2023

Sometimes LastActivity can be left uninitialized while creating the cluster.

@wallyqs wallyqs requested a review from a team as a code owner August 22, 2023 05:00
}
}
for _, route := range rz.Routes {
if route.LastActivity.IsZero() {
Copy link
Member

Choose a reason for hiding this comment

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

Is this loop intentionally duplicate?

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, updated

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

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@wallyqs wallyqs merged commit 6d0fdf5 into dev Aug 22, 2023
2 checks passed
@wallyqs wallyqs deleted the routez-last-activity-init branch August 22, 2023 15:49
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.

None yet

3 participants