aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-demo-libp2p
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-01-22 16:09:05 +0000
committerGitHub <noreply@github.com>2021-01-22 16:09:05 +0000
commit6757b67a321c684769ad022351541c7c6417c693 (patch)
tree261accd97b834dfb42b9bbade97a4e3c2067e3d2 /cmd/dendrite-demo-libp2p
parent93942f8ab62ffdb55888d5d35adef6fe73e3ea59 (diff)
NewClient and NewFederationClient updates (#1730)
* Use matrix-org/gomatrixserverlib#252 * Add missing WithSkipVerify to test * Functions instead * Update gomatrixserverlib to matrix-org/gomatrixserverlib#252 * Fix disabling TLS validation
Diffstat (limited to 'cmd/dendrite-demo-libp2p')
-rw-r--r--cmd/dendrite-demo-libp2p/main.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/dendrite-demo-libp2p/main.go b/cmd/dendrite-demo-libp2p/main.go
index 3acec2fd..31e7739a 100644
--- a/cmd/dendrite-demo-libp2p/main.go
+++ b/cmd/dendrite-demo-libp2p/main.go
@@ -76,9 +76,10 @@ func createFederationClient(
"matrix",
p2phttp.NewTransport(base.LibP2P, p2phttp.ProtocolOption("/matrix")),
)
- return gomatrixserverlib.NewFederationClientWithTransport(
+ return gomatrixserverlib.NewFederationClient(
base.Base.Cfg.Global.ServerName, base.Base.Cfg.Global.KeyID,
- base.Base.Cfg.Global.PrivateKey, true, tr,
+ base.Base.Cfg.Global.PrivateKey,
+ gomatrixserverlib.WithTransport(tr),
)
}
@@ -90,7 +91,9 @@ func createClient(
"matrix",
p2phttp.NewTransport(base.LibP2P, p2phttp.ProtocolOption("/matrix")),
)
- return gomatrixserverlib.NewClientWithTransport(tr)
+ return gomatrixserverlib.NewClient(
+ gomatrixserverlib.WithTransport(tr),
+ )
}
func main() {