diff --git a/router/json.go b/router/json.go index e3091b24..9d27fdde 100644 --- a/router/json.go +++ b/router/json.go @@ -62,7 +62,7 @@ func (routes *Routes) MarshalJSON() ([]byte, error) { func (peer *Peer) MarshalJSON() ([]byte, error) { conns := make([]Connection, 0) - peer.ForEachConnection(func(remoteName PeerName, conn Connection) { + peer.ForEachConnection(func(_ PeerName, conn Connection) { conns = append(conns, conn) }) return json.Marshal(struct {