mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-05-22 01:29:56 +00:00
Add register talk protocol unicity check
This commit is contained in:
parent
07b9e0427e
commit
02bf4427ed
@ -1225,7 +1225,9 @@ proc open*(d: Protocol) {.raises: [Defect, CatchableError].} =
|
||||
else:
|
||||
@[byte 0]
|
||||
)
|
||||
discard d.registerTalkProtocol(clientModeProtocolId, clientModeProtocol)
|
||||
discard d.registerTalkProtocol(clientModeProtocolId, clientModeProtocol).expect(
|
||||
"Only one protocol should have this id"
|
||||
)
|
||||
|
||||
d.seedTable()
|
||||
trace "Routing table seeded."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user