chore: style fix for #84 (#85)

This commit is contained in:
vladopajic
2025-07-22 14:25:04 +02:00
committed by GitHub
parent 2697a3a1e1
commit e7a69bb392
2 changed files with 27 additions and 27 deletions

View File

@@ -154,7 +154,7 @@ proc send(
): Future[int] {.async.} =
let written = addr result
var datagram = trySend(connection, streamId, messagePtr, messageLen, written, isFin)
# Special handling for empty data - avoid infinite waiting
if messageLen == 0:
if isFin:
@@ -172,7 +172,7 @@ proc send(
result = 0
connection.updateExpiryTimer()
return
# Normal flow control for data packets
while datagram.data.len == 0:
connection.flowing.clear()