Skip to content

Commit

Permalink
Fixes for changes in Hummingbird RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Aug 27, 2024
1 parent f8c150f commit 6789079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/HummingbirdCompression/CompressedBodyWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Logging

// ResponseBodyWriter that writes a compressed version of the response to a parent writer
final class CompressedBodyWriter<ParentWriter: ResponseBodyWriter & Sendable>: ResponseBodyWriter {
let parentWriter: ParentWriter
var parentWriter: ParentWriter
let compressor: NIOCompressor
var lastBuffer: ByteBuffer?
let logger: Logger
Expand Down
4 changes: 2 additions & 2 deletions Tests/HummingbirdCompressionTests/CompressionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ class HummingBirdCompressionTests: XCTestCase {
let bufferSize: Int

struct Writer: ResponseBodyWriter {
let parentWriter: any ResponseBodyWriter
var parentWriter: any ResponseBodyWriter
let bufferSize: Int

func write(_ buffer: ByteBuffer) async throws {
mutating func write(_ buffer: ByteBuffer) async throws {
XCTAssertLessThanOrEqual(buffer.capacity, self.bufferSize)
try await self.parentWriter.write(buffer)
}
Expand Down

0 comments on commit 6789079

Please sign in to comment.