File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Sources/GRPCOTelTracingInterceptors/Tracing
Tests/GRPCHealthServiceTests Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor {
102102 public func intercept< Input, Output> (
103103 request: StreamingServerRequest < Input > ,
104104 context: ServerContext ,
105- next: @Sendable ( StreamingServerRequest < Input > , ServerContext ) async throws ->
105+ next:
106+ @Sendable ( StreamingServerRequest < Input > , ServerContext ) async throws ->
106107 StreamingServerResponse < Output >
107108 ) async throws -> StreamingServerResponse < Output > where Input: Sendable , Output: Sendable {
108109 try await self . intercept (
@@ -118,7 +119,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor {
118119 tracer: any Tracer ,
119120 request: StreamingServerRequest < Input > ,
120121 context: ServerContext ,
121- next: @Sendable ( StreamingServerRequest < Input > , ServerContext ) async throws ->
122+ next:
123+ @Sendable ( StreamingServerRequest < Input > , ServerContext ) async throws ->
122124 StreamingServerResponse < Output >
123125 ) async throws -> StreamingServerResponse < Output > where Input: Sendable , Output: Sendable {
124126 var serviceContext = ServiceContext . topLevel
Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ import XCTest
2323@available ( gRPCSwiftExtras 2 . 0 , * )
2424final class HealthTests : XCTestCase {
2525 private func withHealthClient(
26- _ body: @Sendable (
27- Grpc_Health_V1_Health . Client < InProcessTransport . Client > ,
28- HealthService . Provider
29- ) async throws -> Void
26+ _ body:
27+ @Sendable (
28+ Grpc_Health_V1_Health . Client < InProcessTransport . Client > ,
29+ HealthService . Provider
30+ ) async throws -> Void
3031 ) async throws {
3132 let health = HealthService ( )
3233 let inProcess = InProcessTransport ( )
You can’t perform that action at this time.
0 commit comments