Skip to content

Commit 84e7842

Browse files
committed
formatting
1 parent da2fc15 commit 84e7842

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Sources/AsyncHTTPClient/HTTPClient.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ public final class HTTPClient: Sendable {
778778
makeOrGetFileIOThreadPool: self.makeOrGetFileIOThreadPool
779779
)
780780
}
781-
#endif // TracingSupport
781+
#endif // TracingSupport
782782

783783
return Task<Delegate.Response>.failedTask(
784784
eventLoop: taskEL,
@@ -830,7 +830,7 @@ public final class HTTPClient: Sendable {
830830
logger: logger,
831831
makeOrGetFileIOThreadPool: self.makeOrGetFileIOThreadPool
832832
)
833-
#endif // TracingSupport
833+
#endif // TracingSupport
834834

835835
do {
836836
let requestBag = try RequestBag(
@@ -1135,7 +1135,6 @@ public final class HTTPClient: Sendable {
11351135
/// Configuration for tracing attributes set by the HTTPClient.
11361136
public var attributeKeys: AttributeKeys
11371137

1138-
11391138
public init() {
11401139
self._tracer = nil
11411140
self.attributeKeys = .init()

Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,11 +930,11 @@ extension HTTPClient {
930930

931931
#if TracingSupport
932932
let anyTracer: (any Sendable)? = nil // Ok to store the tracer here because a Task is for only one request.
933-
933+
934934
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
935935
public var tracer: (any Tracer)? {
936936
get {
937-
return anyTracer as! (any Tracer)?
937+
anyTracer as! (any Tracer)?
938938
}
939939
}
940940
#endif

Sources/AsyncHTTPClient/RequestBag.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ final class RequestBag<Delegate: HTTPClientResponseDelegate & Sendable>: Sendabl
8383
var tracer: (any Tracer)? {
8484
self.task.tracer
8585
}
86-
#endif // TracingSupport
86+
#endif // TracingSupport
8787

8888
let connectionDeadline: NIODeadline
8989

Sources/AsyncHTTPClient/TracingSupport.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protocol _TracingSupportOperations {
5151
/// Fails the active overall span given some internal error, e.g. timeout, pool shutdown etc.
5252
/// This is not to be used for failing a span given a failure status coded HTTPResponse.
5353
mutating func failRequestSpan(error: any Error)
54-
mutating func failRequestSpanAsCancelled() // because CancellationHandler availability...
54+
mutating func failRequestSpanAsCancelled() // because CancellationHandler availability...
5555

5656
/// Ends the active overall span upon receipt of the response head.
5757
///
@@ -69,7 +69,7 @@ extension RequestBag.LoopBoundState {
6969

7070
@inlinable
7171
mutating func failRequestSpan(error: any Error) {}
72-
72+
7373
@inlinable
7474
mutating func failRequestSpanAsCancelled() {}
7575

@@ -83,8 +83,9 @@ extension RequestBag.LoopBoundState {
8383
// typealias TracerType = Tracer
8484

8585
mutating func startRequestSpan<T>(tracer: T?) {
86-
guard #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *),
87-
let tracer = tracer as! (any Tracer)? else {
86+
guard #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *),
87+
let tracer = tracer as! (any Tracer)?
88+
else {
8889
return
8990
}
9091

0 commit comments

Comments
 (0)