mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-28 21:39:25 +00:00
Format SignedPeerRecord
This commit is contained in:
parent
3e1fb38543
commit
2c493c648e
@ -94,7 +94,7 @@ import std/typetraits
|
||||
import pkg/chronicles except toJson, `%`
|
||||
import json_serialization/writer as json_serialization_writer
|
||||
from pkg/chronos import TransportAddress
|
||||
from pkg/libp2p import Cid, MultiAddress, `$`
|
||||
from pkg/libp2p import Cid, MultiAddress, SignedPeerRecord, `$`
|
||||
import pkg/questionable
|
||||
import pkg/questionable/results
|
||||
import ./utils/json except formatIt # TODO: remove exception?
|
||||
@ -248,6 +248,8 @@ formatIt(UInt256):
|
||||
$it
|
||||
formatIt(MultiAddress):
|
||||
$it
|
||||
formatIt(SignedPeerRecord):
|
||||
$it
|
||||
formatIt(LogFormat.textLines, array[32, byte]):
|
||||
it.short0xHexLog
|
||||
formatIt(LogFormat.json, array[32, byte]):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user