Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor {
public func intercept<Input, Output>(
request: StreamingServerRequest<Input>,
context: ServerContext,
next: @Sendable (StreamingServerRequest<Input>, ServerContext) async throws ->
next:
@Sendable (StreamingServerRequest<Input>, ServerContext) async throws ->
StreamingServerResponse<Output>
) async throws -> StreamingServerResponse<Output> where Input: Sendable, Output: Sendable {
try await self.intercept(
Expand All @@ -118,7 +119,8 @@ public struct ServerOTelTracingInterceptor: ServerInterceptor {
tracer: any Tracer,
request: StreamingServerRequest<Input>,
context: ServerContext,
next: @Sendable (StreamingServerRequest<Input>, ServerContext) async throws ->
next:
@Sendable (StreamingServerRequest<Input>, ServerContext) async throws ->
StreamingServerResponse<Output>
) async throws -> StreamingServerResponse<Output> where Input: Sendable, Output: Sendable {
var serviceContext = ServiceContext.topLevel
Expand Down
9 changes: 5 additions & 4 deletions Tests/GRPCHealthServiceTests/HealthTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ import XCTest
@available(gRPCSwiftExtras 2.0, *)
final class HealthTests: XCTestCase {
private func withHealthClient(
_ body: @Sendable (
Grpc_Health_V1_Health.Client<InProcessTransport.Client>,
HealthService.Provider
) async throws -> Void
_ body:
@Sendable (
Grpc_Health_V1_Health.Client<InProcessTransport.Client>,
HealthService.Provider
) async throws -> Void
) async throws {
let health = HealthService()
let inProcess = InProcessTransport()
Expand Down