Skip to content

Commit c468dc1

Browse files
committed
Fix accidental async annotation on finish method
1 parent 6bec050 commit c468dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/llhttp/HTTPMessagesParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public actor HTTPMessagesParser<MessageType: HTTPMessageType> {
208208
/// Requests without Content-Length and other messages might require treating all incoming bytes as the part of the body, up to the last byte of the connection.
209209
///
210210
/// This method will trigger the callback if the request was terminated safely. Otherwise an error would be thrown.
211-
public func finish() async throws -> [MessageType] {
211+
public func finish() throws -> [MessageType] {
212212
try llhttp.finish()
213213

214214
defer { messagesCollector = [] }

0 commit comments

Comments
 (0)