Skip to content

Commit d2b5033

Browse files
committed
fix:json peerinfo name for relaynode
1 parent bcad523 commit d2b5033

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

cmd/relaynode/api.go

+11-10
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,17 @@ func (api *PublicRelayAPI) GetPeerInfo(verbose *bool, network *string) (interfac
7272
}
7373
}
7474
info := &json.GetPeerInfoResult{
75-
ID: p.PeerID.String(),
76-
Name: p.Name,
77-
Address: p.Address,
78-
BytesSent: p.BytesSent,
79-
BytesRecv: p.BytesRecv,
80-
Bads: p.Bads,
81-
ReConnect: p.ReConnect,
82-
Active: active,
83-
Snap: p.IsSnap(),
84-
SnapSync: p.InSnapSync,
75+
ID: p.PeerID.String(),
76+
Name: p.Name,
77+
Address: p.Address,
78+
BytesSent: p.BytesSent,
79+
BytesRecv: p.BytesRecv,
80+
Bads: p.Bads,
81+
ReConnect: p.ReConnect,
82+
Active: active,
83+
Snap: p.IsSnap(),
84+
InSnapSync: p.InSnapSync,
85+
LongConnStat: p.LongConnStat,
8586
}
8687
info.Protocol = p.Protocol
8788
info.Services = p.Services.String()

0 commit comments

Comments
 (0)