diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/node.go b/cmd/dendrite-demo-yggdrasil/yggconn/node.go index 73e9cd5b3..18d207a9e 100644 --- a/cmd/dendrite-demo-yggdrasil/yggconn/node.go +++ b/cmd/dendrite-demo-yggdrasil/yggconn/node.go @@ -176,5 +176,5 @@ func (n *Node) SigningPrivateKey() ed25519.PrivateKey { } func (n *Node) PeerCount() int { - return len(n.core.GetSwitchPeers()) + return len(n.core.GetPeers()) - 1 }