Skip to content

Commit cc10aac

Browse files
committed
make next() on response iterator mutating
1 parent 54cfc84 commit cc10aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/AsyncAwait/HTTPClientResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension HTTPClientResponse.Body: AsyncSequence {
5757
self.stream = stream
5858
}
5959

60-
public func next() async throws -> ByteBuffer? {
60+
public mutating func next() async throws -> ByteBuffer? {
6161
try await self.stream.next()
6262
}
6363
}

0 commit comments

Comments
 (0)