mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 20:14:09 +00:00
fix ValidIpAddress multiaddress init return type
This commit is contained in:
parent
04c95cb7b0
commit
9c1633bf87
@ -858,7 +858,7 @@ proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress,
|
|||||||
res.data.write(transportProto.mcodec)
|
res.data.write(transportProto.mcodec)
|
||||||
res.data.writeArray(toBytesBE(uint16(port)))
|
res.data.writeArray(toBytesBE(uint16(port)))
|
||||||
res.data.finish()
|
res.data.finish()
|
||||||
ok(res)
|
res
|
||||||
|
|
||||||
proc init*(mtype: typedesc[MultiAddress], address: TransportAddress,
|
proc init*(mtype: typedesc[MultiAddress], address: TransportAddress,
|
||||||
protocol = IPPROTO_TCP): MaResult[MultiAddress] =
|
protocol = IPPROTO_TCP): MaResult[MultiAddress] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user