aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-demo-yggdrasil/yggconn/node.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-07-16 15:19:26 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-07-16 15:19:26 +0100
commit986498f5a5200dbdd91ae1964050ce2e1e940ae5 (patch)
tree925113b64f869b72423e2a94baf6a2563f4423e8 /cmd/dendrite-demo-yggdrasil/yggconn/node.go
parentfbf139f20ea4552d0010305ca5d33b55d24a7af9 (diff)
Don't block Yggdrasil switch
Diffstat (limited to 'cmd/dendrite-demo-yggdrasil/yggconn/node.go')
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/node.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/node.go b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
index 67aec050..2ed15b3a 100644
--- a/cmd/dendrite-demo-yggdrasil/yggconn/node.go
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
@@ -20,7 +20,6 @@ import (
"crypto/tls"
"encoding/hex"
"encoding/json"
- "errors"
"fmt"
"io/ioutil"
"log"
@@ -56,9 +55,6 @@ type Node struct {
}
func (n *Node) Dialer(_, address string) (net.Conn, error) {
- if len(n.core.GetSwitchPeers()) == 0 {
- return nil, errors.New("no peer connections available")
- }
tokens := strings.Split(address, ":")
raw, err := hex.DecodeString(tokens[0])
if err != nil {