Skip to content

Commit

Permalink
api: Addr -> Address
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger authored and ChrisSchinnerl committed Nov 1, 2024
1 parent 3740fda commit 465e9da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type StateResponse struct {

// A GatewayPeer is a currently-connected peer.
type GatewayPeer struct {
Addr string `json:"addr"`
Address string `json:"address"`
Inbound bool `json:"inbound"`
Version string `json:"version"`

Expand Down
2 changes: 1 addition & 1 deletion api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (s *server) syncerPeersHandler(jc jape.Context) {
for _, p := range s.s.Peers() {
// create peer response with known fields
peer := GatewayPeer{
Addr: p.Addr(),
Address: p.Addr(),
Inbound: p.Inbound,
Version: p.Version(),
}
Expand Down

0 comments on commit 465e9da

Please sign in to comment.