mirror of
https://github.com/codex-storage/nim-codex-dht.git
synced 2025-02-12 03:47:07 +00:00
cleanup
This commit is contained in:
parent
932c092a16
commit
cb2031d181
@ -933,11 +933,8 @@ proc newProtocol*(
|
||||
var record: SignedPeerRecord
|
||||
if previousRecord.isSome():
|
||||
record = previousRecord.get()
|
||||
debugEcho ">>> [protocol.newProtocol] previousRecord seqNum BEFORE: ", record.seqNum
|
||||
record.update(privKey, sprIp, sprTcpPort, sprUdpPort, sprTtl)
|
||||
.expect("SignedPeerRecord within size limits and correct key")
|
||||
debugEcho ">>> [protocol.newProtocol] record seqNum AFTER: ", record.seqNum
|
||||
debugEcho ">>> [protocol.newProtocol] previousRecord seqNum AFTER: ", previousRecord.get().seqNum
|
||||
else:
|
||||
record = SignedPeerRecord.init(privKey, sprIp, sprTcpPort, sprUdpPort, sprTtl)
|
||||
.expect("SignedPeerRecord within size limits")
|
||||
|
Loading…
x
Reference in New Issue
Block a user