mirror of
https://github.com/vacp2p/mix.git
synced 2026-01-09 21:07:59 -05:00
fix: entry connection log
This commit is contained in:
@@ -25,6 +25,15 @@ type MixEntryConnection* = ref object of Connection
|
||||
replyReceivedFut: Future[void]
|
||||
cached: seq[byte]
|
||||
|
||||
func shortLog*(conn: MixEntryConnection): string =
|
||||
if conn == nil:
|
||||
"MixEntryConnection(nil)"
|
||||
else:
|
||||
"MixEntryConnection(" & $conn.destination & ")"
|
||||
|
||||
chronicles.formatIt(MixEntryConnection):
|
||||
shortLog(it)
|
||||
|
||||
method readOnce*(
|
||||
s: MixEntryConnection, pbytes: pointer, nbytes: int
|
||||
): Future[int] {.async: (raises: [CancelledError, LPStreamError]), public.} =
|
||||
|
||||
Reference in New Issue
Block a user