fix: entry connection log

This commit is contained in:
Richard Ramos
2025-09-09 08:53:52 -04:00
parent bc0a9be913
commit 4687c955f5

View File

@@ -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.} =