File tree 2 files changed +2
-5
lines changed
Tests/AsyncHTTPClientTests
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -841,12 +841,12 @@ extension TaskHandler: ChannelDuplexHandler {
841
841
let promise = self . task. eventLoop. makePromise ( of: Void . self)
842
842
// All writes have to be switched to the channel EL if channel and task ELs differ
843
843
if context. eventLoop. inEventLoop {
844
- context. writeAndFlush ( self . wrapOutboundOut ( . body( part) ) , promise: promise)
845
844
self . actualBodyLength += part. readableBytes
845
+ context. writeAndFlush ( self . wrapOutboundOut ( . body( part) ) , promise: promise)
846
846
} else {
847
847
context. eventLoop. execute {
848
- context. writeAndFlush ( self . wrapOutboundOut ( . body( part) ) , promise: promise)
849
848
self . actualBodyLength += part. readableBytes
849
+ context. writeAndFlush ( self . wrapOutboundOut ( . body( part) ) , promise: promise)
850
850
}
851
851
}
852
852
Original file line number Diff line number Diff line change @@ -361,9 +361,6 @@ internal struct HTTPResponseBuilder {
361
361
}
362
362
}
363
363
364
- // let globalRequestCounter = NIOAtomic<Int>.makeAtomic(value: 0)
365
- // let globalConnectionCounter = NIOAtomic<Int>.makeAtomic(value: 0)
366
-
367
364
internal struct RequestInfo : Codable {
368
365
var data : String
369
366
var requestNumber : Int
You can’t perform that action at this time.
0 commit comments