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

fix: Fix JSON tags for cluster node related structs #227

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ type ClusterLink struct {
Stats ClusterLinkStats `json:"stats"`
Name string `json:"name"`
PeerAddr string `json:"peer_addr"`
PeerPort uint `json:"peer_addr"`
PeerPort uint `json:"peer_port"`
SockAddr string `json:"sock_addr"`
SockPort uint `json:"sock_addr"`
SockPort uint `json:"sock_port"`
SendBytes uint64 `json:"send_bytes"`
RecvBytes uint64 `json:"recv_bytes"`
}
Expand Down Expand Up @@ -112,7 +112,7 @@ type NodeInfo struct {
IOReadCount uint64 `json:"io_read_count"`
IOReadCountDetails RateDetails `json:"io_read_count_details"`
IOReadBytes uint64 `json:"io_read_bytes"`
IOReadBytesDetails RateDetails `json:"io_read_bytes"`
IOReadBytesDetails RateDetails `json:"io_read_bytes_details"`
IOReadAvgTime float64 `json:"io_read_avg_time"`
IOReadAvgTimeDetails RateDetails `json:"io_read_avg_time_details"`
IOWriteCount uint64 `json:"io_write_count"`
Expand Down