From 55bc82c439057f379361871c863aa9611d70fce2 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 1 Jul 2020 13:47:16 +0100 Subject: [PATCH] Update Yggdrasil demo peer count --- cmd/dendrite-demo-yggdrasil/yggconn/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }