From c45cb5ce003ac8ba274afdc6b0c827bada17355f Mon Sep 17 00:00:00 2001 From: George Barnett Date: Thu, 6 Nov 2025 09:05:52 +0000 Subject: [PATCH] Run the formatter Motivation: The formatter hasn't been run since the formatting CI image got updated so the formatting check now fails. Modifications: Run the formatter. Result: Formatting CI check passes --- .../Tracing/ServerOTelTracingInterceptor.swift | 6 ++++-- Tests/GRPCHealthServiceTests/HealthTests.swift | 9 +++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift b/Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift index b3e1aa3..947ccb4 100644 --- a/Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift +++ b/Sources/GRPCOTelTracingInterceptors/Tracing/ServerOTelTracingInterceptor.swift @@ -102,7 +102,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor { public func intercept( request: StreamingServerRequest, context: ServerContext, - next: @Sendable (StreamingServerRequest, ServerContext) async throws -> + next: + @Sendable (StreamingServerRequest, ServerContext) async throws -> StreamingServerResponse ) async throws -> StreamingServerResponse where Input: Sendable, Output: Sendable { try await self.intercept( @@ -118,7 +119,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor { tracer: any Tracer, request: StreamingServerRequest, context: ServerContext, - next: @Sendable (StreamingServerRequest, ServerContext) async throws -> + next: + @Sendable (StreamingServerRequest, ServerContext) async throws -> StreamingServerResponse ) async throws -> StreamingServerResponse where Input: Sendable, Output: Sendable { var serviceContext = ServiceContext.topLevel diff --git a/Tests/GRPCHealthServiceTests/HealthTests.swift b/Tests/GRPCHealthServiceTests/HealthTests.swift index fe2e214..8d47072 100644 --- a/Tests/GRPCHealthServiceTests/HealthTests.swift +++ b/Tests/GRPCHealthServiceTests/HealthTests.swift @@ -23,10 +23,11 @@ import XCTest @available(gRPCSwiftExtras 2.0, *) final class HealthTests: XCTestCase { private func withHealthClient( - _ body: @Sendable ( - Grpc_Health_V1_Health.Client, - HealthService.Provider - ) async throws -> Void + _ body: + @Sendable ( + Grpc_Health_V1_Health.Client, + HealthService.Provider + ) async throws -> Void ) async throws { let health = HealthService() let inProcess = InProcessTransport()