Skip to content

Commit 6096bc9

Browse files
committed
Make formatter happy
1 parent 2d45cad commit 6096bc9

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Sources/GRPCCodeGen/Internal/Translator/ClientCodeTranslator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ extension ClientCodeTranslator {
493493
let requestType = method.isInputStreaming ? "Streaming" : ""
494494
let clientRequestType = ExistingTypeDescription.member([
495495
"GRPCCore",
496-
"\(requestType)ClientRequest"
496+
"\(requestType)ClientRequest",
497497
])
498498
return ParameterDescription(
499499
label: "request",

Tests/GRPCCoreTests/Call/Client/Internal/ClientRPCExecutorTestSupport/ClientRPCExecutorTestHarness.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ struct ClientRPCExecutorTestHarness {
7171
options: CallOptions = .defaults,
7272
handler: @escaping @Sendable (ClientResponse<[UInt8]>) async throws -> Void
7373
) async throws {
74-
try await self.bidirectional(request: StreamingClientRequest(single: request), options: options) {
75-
response in
74+
try await self.bidirectional(
75+
request: StreamingClientRequest(single: request),
76+
options: options
77+
) { response in
7678
try await handler(ClientResponse(stream: response))
7779
}
7880
}
@@ -92,8 +94,10 @@ struct ClientRPCExecutorTestHarness {
9294
options: CallOptions = .defaults,
9395
handler: @escaping @Sendable (StreamingClientResponse<[UInt8]>) async throws -> Void
9496
) async throws {
95-
try await self.bidirectional(request: StreamingClientRequest(single: request), options: options) {
96-
response in
97+
try await self.bidirectional(
98+
request: StreamingClientRequest(single: request),
99+
options: options
100+
) { response in
97101
try await handler(response)
98102
}
99103
}

Tests/GRPCCoreTests/Call/Server/Internal/ServerRPCExecutorTestSupport/ServerRPCExecutorTestHarness.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import XCTest
2020
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
2121
struct ServerRPCExecutorTestHarness {
2222
struct ServerHandler<Input: Sendable, Output: Sendable>: Sendable {
23-
let fn: @Sendable (StreamingServerRequest<Input>) async throws -> StreamingServerResponse<Output>
23+
let fn:
24+
@Sendable (StreamingServerRequest<Input>) async throws -> StreamingServerResponse<Output>
2425

2526
init(
2627
_ fn: @escaping @Sendable (

Tests/GRPCCoreTests/Call/Server/ServerResponseTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ final class ServerResponseTests: XCTestCase {
4545
}
4646

4747
func testStreamConvenienceInit() async throws {
48-
var response = StreamingServerResponse(of: String.self, metadata: ["metadata": "initial"]) { _ in
48+
var response = StreamingServerResponse(
49+
of: String.self,
50+
metadata: ["metadata": "initial"]
51+
) { _ in
4952
// Empty body.
5053
return ["metadata": "trailing"]
5154
}

0 commit comments

Comments
 (0)