Skip to content

Commit

Permalink
Fix route guide tutorial (#2094)
Browse files Browse the repository at this point in the history
We changed some APIs and the tutorial code snippets have to be updated.
  • Loading branch information
gjcairo authored Oct 15, 2024
1 parent 7393a28 commit 574eea6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension RouteGuide {
let client = try GRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: 31415),
config: .defaults()
config: .defaults(transportSecurity: .plaintext)
)
)

Expand Down

0 comments on commit 574eea6

Please sign in to comment.