Skip to content

Commit

Permalink
Add observer to peer info
Browse files Browse the repository at this point in the history
This is to support nats-io/nats-server#4582.

Signed-off-by: Neil Twigg <neil@nats.io>
  • Loading branch information
neilalexander committed Sep 26, 2023
1 parent a6bb6fa commit 22cd46b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jsm.go
Expand Up @@ -979,11 +979,12 @@ type ClusterInfo struct {
// PeerInfo shows information about all the peers in the cluster that
// are supporting the stream or consumer.
type PeerInfo struct {
Name string `json:"name"`
Current bool `json:"current"`
Offline bool `json:"offline,omitempty"`
Active time.Duration `json:"active"`
Lag uint64 `json:"lag,omitempty"`
Name string `json:"name"`
Current bool `json:"current"`
Observer bool `json:"observer,omitempty"`
Offline bool `json:"offline,omitempty"`
Active time.Duration `json:"active"`
Lag uint64 `json:"lag,omitempty"`
}

// UpdateStream updates a Stream.
Expand Down

0 comments on commit 22cd46b

Please sign in to comment.