aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-11-25 11:18:01 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2021-11-25 11:18:01 +0000
commit11f588b0d603517be2c0509335c88b85b88f91f8 (patch)
tree93148d23e508b8c9ac71c6db65c6f9d87f5c9df7 /cmd
parent310edd737ca52839ec8094e2847f5746e48bad69 (diff)
Fixes for multiple Pinecone peers
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dendrite-demo-pinecone/conn/client.go2
-rw-r--r--cmd/dendrite-demo-pinecone/main.go7
2 files changed, 6 insertions, 3 deletions
diff --git a/cmd/dendrite-demo-pinecone/conn/client.go b/cmd/dendrite-demo-pinecone/conn/client.go
index 14b648a3..e3cc0468 100644
--- a/cmd/dendrite-demo-pinecone/conn/client.go
+++ b/cmd/dendrite-demo-pinecone/conn/client.go
@@ -37,7 +37,7 @@ func ConnectToPeer(pRouter *pineconeRouter.Router, peer string) error {
_, err := pRouter.Connect(
parent,
pineconeRouter.ConnectionZone("static"),
- pineconeRouter.PeerTypeRemote,
+ pineconeRouter.ConnectionPeerType(pineconeRouter.PeerTypeRemote),
pineconeRouter.ConnectionURI(peer),
)
return err
diff --git a/cmd/dendrite-demo-pinecone/main.go b/cmd/dendrite-demo-pinecone/main.go
index 8ed3f349..cc7238ea 100644
--- a/cmd/dendrite-demo-pinecone/main.go
+++ b/cmd/dendrite-demo-pinecone/main.go
@@ -110,7 +110,10 @@ func main() {
continue
}
- port, err := pRouter.Connect(conn, pineconeRouter.PeerTypeRemote)
+ port, err := pRouter.Connect(
+ conn,
+ pineconeRouter.ConnectionPeerType(pineconeRouter.PeerTypeRemote),
+ )
if err != nil {
logrus.WithError(err).Error("pSwitch.Connect failed")
continue
@@ -242,7 +245,7 @@ func main() {
if _, err = pRouter.Connect(
conn,
pineconeRouter.ConnectionZone("websocket"),
- pineconeRouter.PeerTypeRemote,
+ pineconeRouter.ConnectionPeerType(pineconeRouter.PeerTypeRemote),
); err != nil {
logrus.WithError(err).Error("Failed to connect WebSocket peer to Pinecone switch")
}