Skip to content

Commit

Permalink
Add observer to cluster replica 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 <[email protected]>
  • Loading branch information
neilalexander committed Sep 26, 2023
1 parent a6bb6fa commit 540cf69
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jsm.go
Original file line number Diff line number Diff line change
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 540cf69

Please sign in to comment.