Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Oct 25, 2024
1 parent 8fe7618 commit b87eb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Networking/Sources/Networking/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class Connection<Handler: StreamHandler>: Sendable, ConnectionInfoP
let kind = request.kind
let stream = try createStream(kind: kind)
try stream.send(message: data)

// TODO: pipe this to decoder directly to be able to reject early
var reps = Data()
while let nextData = await stream.receive() {
let length = try decodeLength(from: nextData.prefix(4))
Expand Down

0 comments on commit b87eb42

Please sign in to comment.