updateRecord takes an optional now

This commit is contained in:
Dmitriy Ryajov 2022-09-12 16:41:13 -06:00
parent 206a5b9b19
commit 63d7d98e15
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ method provide*(d: Discovery, host: ca.Address) {.async, base.} =
trace "Provided to nodes", nodes = nodes.len
proc start*(d: Discovery) {.async.} =
d.protocol.updateRecord(d.localInfo.signedPeerRecord).expect("updating SPR")
d.protocol.updateRecord(
d.localInfo.signedPeerRecord.some).expect("updating SPR")
d.protocol.open()
d.protocol.start()