Skip to content

Commit 574eea6

Browse files
authored
Fix route guide tutorial (#2094)
We changed some APIs and the tutorial code snippets have to be updated.
1 parent 7393a28 commit 574eea6

7 files changed

+7
-7
lines changed

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step03-create-client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111
}

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step04-run-client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step05-stub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step06-get-feature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step07-list-features.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step08-record-route.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

Sources/GRPCCore/Documentation.docc/Tutorials/Route-Guide/Resources/route-guide-sec06-step09-route-chat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension RouteGuide {
55
let client = try GRPCClient(
66
transport: .http2NIOPosix(
77
target: .ipv4(host: "127.0.0.1", port: 31415),
8-
config: .defaults()
8+
config: .defaults(transportSecurity: .plaintext)
99
)
1010
)
1111

0 commit comments

Comments
 (0)