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 observer to peer info #481

Merged
merged 1 commit into from Feb 20, 2024
Merged

Add observer to peer info #481

merged 1 commit into from Feb 20, 2024

Conversation

neilalexander
Copy link
Member

This is to support nats-io/nats-server#4582.

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

Copy link
Collaborator

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

api/cluster.go Outdated
Lag uint64 `json:"lag,omitempty" yaml:"lag"`
Name string `json:"name" yaml:"name"`
Current bool `json:"current" yaml:"current"`
Observer bool `json:"observer" yaml:"observer"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I noticed you did omitempty in json on the nats.go so we should probably do the same here? Assuming thats whats in the server. But not on yaml.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes good catch, fixed.

Copy link
Collaborator

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

Updating review after json omitempty comment

This is to support nats-io/nats-server#4582.

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Collaborator

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@ripienaar ripienaar merged commit 16a7ecf into main Feb 20, 2024
4 checks passed
@ripienaar ripienaar deleted the neil/observers branch February 20, 2024 09:40
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

2 participants