mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
fix simple compilation issues waku_switch and rdv protocol
This commit is contained in:
parent
499cf58c33
commit
d1a3302ea4
@ -47,14 +47,10 @@ proc withWssTransport*(
|
||||
): SwitchBuilder {.raises: [Defect, IOError].} =
|
||||
let key: TLSPrivateKey = getSecureKey(secureKeyPath)
|
||||
let cert: TLSCertificate = getSecureCert(secureCertPath)
|
||||
b.withTransport(
|
||||
proc(upgr: Upgrade, privateKey: crypto.PrivateKey): Transport =
|
||||
WsTransport.new(
|
||||
upgr,
|
||||
tlsPrivateKey = key,
|
||||
tlsCertificate = cert,
|
||||
{TLSFlags.NoVerifyHost, TLSFlags.NoVerifyServerName},
|
||||
)
|
||||
b.withWsTransport(
|
||||
tlsPrivateKey = key,
|
||||
tlsCertificate = cert,
|
||||
{TLSFlags.NoVerifyHost, TLSFlags.NoVerifyServerName}, # THIS IS INSECURE, NO?
|
||||
)
|
||||
|
||||
proc newWakuSwitch*(
|
||||
|
||||
@ -77,7 +77,7 @@ proc batchAdvertise*(
|
||||
conn
|
||||
|
||||
let advertCatch = catch:
|
||||
await self.rendezvous.advertise(namespace, ttl)
|
||||
await self.rendezvous.advertise(namespace, Opt.some(ttl))
|
||||
|
||||
for conn in conns:
|
||||
await conn.close()
|
||||
@ -126,7 +126,7 @@ proc batchRequest*(
|
||||
conn
|
||||
|
||||
let reqCatch = catch:
|
||||
await self.rendezvous.request(Opt.some(namespace), count, peers)
|
||||
await self.rendezvous.request(Opt.some(namespace), Opt.some(count), Opt.some(peers))
|
||||
|
||||
for conn in conns:
|
||||
await conn.close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user