@@ -576,7 +576,7 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
576576 . connected( _, . sentResponse) :
577577 // The final response has already been sent. The only way to report the unhandled error
578578 // now is to log it. Normally this library never logs higher than debug, we make an
579- // exception here, as there is no other way of reporting the error otherwise .
579+ // exception here, as there is no other way of reporting the error.
580580 self . logger. error (
581581 " Unhandled error after stream has finished " ,
582582 metadata: [
@@ -662,12 +662,12 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
662662 ) async throws {
663663
664664 if let requestID = sendHeadWithRequestID {
665- // TODO: This feels super expensive. We should be able to make this cheaper. requestIDs are fixed length
665+ // TODO: This feels super expensive. We should be able to make this cheaper. requestIDs are fixed length.
666666 let url = Consts . invocationURLPrefix + " / " + requestID + Consts. postResponseURLSuffix
667667
668668 var headers = self . streamingHeaders
669669 if await self . delegate. hasStreamingCustomHeaders ( isolation: #isolation) {
670- // this headers is required by Function URL when the user sends custom status code or headers
670+ // this header is required by Function URL when the user sends custom status code or headers
671671 headers. add ( name: " Content-Type " , value: " application/vnd.awslambda.http-integration-response " )
672672 }
673673 let httpRequest = HTTPRequestHead (
@@ -692,11 +692,11 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
692692 context: ChannelHandlerContext
693693 ) {
694694 if let requestID = sendHeadWithRequestID {
695- // TODO: This feels quite expensive. We should be able to make this cheaper. requestIDs are fixed length
695+ // TODO: This feels quite expensive. We should be able to make this cheaper. requestIDs are fixed length.
696696 let url = " \( Consts . invocationURLPrefix) / \( requestID) \( Consts . postResponseURLSuffix) "
697697
698698 // If we have less than 6MB, we don't want to use the streaming API. If we have more
699- // than 6MB we must use the streaming mode.
699+ // than 6MB, we must use the streaming mode.
700700 var headers : HTTPHeaders !
701701 if byteBuffer? . readableBytes ?? 0 < 6_000_000 {
702702 headers = self . defaultHeaders
0 commit comments