Skip to content

Commit 70d91e2

Browse files
authored
Rename client interceptor context (#2061)
Motivation: The `ServerInterceptorContext` was renamed to `ServerContext`. The same should be done for the client. Modifications: - Rename `ClientInterceptorContext` to `ClientContext` Result: More consistent naming
1 parent 9603274 commit 70d91e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GRPCInterceptors/ClientTracingInterceptor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public struct ClientTracingInterceptor: ClientInterceptor {
4545
/// that has been configured when bootstrapping `swift-distributed-tracing` in your application.
4646
public func intercept<Input, Output>(
4747
request: ClientRequest.Stream<Input>,
48-
context: ClientInterceptorContext,
48+
context: ClientContext,
4949
next: (
5050
ClientRequest.Stream<Input>,
51-
ClientInterceptorContext
51+
ClientContext
5252
) async throws -> ClientResponse.Stream<Output>
5353
) async throws -> ClientResponse.Stream<Output> where Input: Sendable, Output: Sendable {
5454
var request = request

0 commit comments

Comments
 (0)