mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 20:14:09 +00:00
Work-around a Nim compilation error
This commit is contained in:
parent
3669b90ceb
commit
cf8a1a60a4
@ -30,7 +30,8 @@ type
|
||||
|
||||
func `$`*(pid: PeerID): string =
|
||||
## Return base58 encoded ``pid`` representation.
|
||||
Base58.encode(pid.data)
|
||||
# This unusual call syntax is used to avoid a strange Nim compilation error
|
||||
base58.encode(Base58, pid.data)
|
||||
|
||||
func shortLog*(pid: PeerId): string =
|
||||
## Returns compact string representation of ``pid``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user