Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a40b9dd

Browse files
committedMar 2, 2025··
call onFinish() too
1 parent 9e27b32 commit a40b9dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Sources/PostgresNIO/New/PSQLRowStream.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,9 @@ final class PSQLRowStream: @unchecked Sendable {
313313
self.downstreamState = .consumed(.failure(error))
314314
return self.eventLoop.makeFailedFuture(error)
315315
}
316-
case .asyncSequence(let consumer, let dataSource, _):
316+
case .asyncSequence(let consumer, let dataSource, let onFinish):
317317
consumer.finish()
318+
onFinish()
318319

319320
let promise = self.eventLoop.makePromise(of: [PostgresRow].self)
320321

0 commit comments

Comments
 (0)
Please sign in to comment.