Skip to content

Commit 622a549

Browse files
committed
Address @glbrntt review comments; minor cleanups
1 parent 8b30965 commit 622a549

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

Sources/AsyncHTTPClient/AsyncAwait/HTTPClient+tracing.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Logging
16-
import NIOCore
1715
import NIOHTTP1
1816
import Tracing
1917

20-
import struct Foundation.URL
21-
2218
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2319
extension HTTPClient {
2420
@inlinable

Sources/AsyncHTTPClient/AsyncAwait/Transaction.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,6 @@ final class Transaction:
3535

3636
private let state: NIOLockedValueBox<StateMachine>
3737

38-
init(
39-
request: HTTPClientRequest.Prepared,
40-
requestOptions: RequestOptions,
41-
logger: Logger,
42-
connectionDeadline: NIODeadline,
43-
preferredEventLoop: EventLoop,
44-
span: (any Span)?,
45-
responseContinuation: CheckedContinuation<HTTPClientResponse, Error>
46-
) {
47-
self.request = request
48-
self.requestOptions = requestOptions
49-
self.logger = logger
50-
self.connectionDeadline = connectionDeadline
51-
self.preferredEventLoop = preferredEventLoop
52-
self.state = NIOLockedValueBox(StateMachine(responseContinuation))
53-
}
54-
5538
init(
5639
request: HTTPClientRequest.Prepared,
5740
requestOptions: RequestOptions,

0 commit comments

Comments
 (0)