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
2 changes: 1 addition & 1 deletion Examples/echo-metadata/Sources/ClientArguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ struct ClientArguments: ParsableArguments {

extension ClientArguments {
var target: any ResolvableTarget {
return .ipv4(host: "127.0.0.1", port: self.port)
return .dns(host: "localhost", port: self.port)
}
}
2 changes: 1 addition & 1 deletion Examples/echo/Sources/Subcommands/ClientArguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ struct ClientArguments: ParsableArguments {

extension ClientArguments {
var target: any ResolvableTarget {
return .ipv4(host: "127.0.0.1", port: self.port)
return .dns(host: "localhost", port: self.port)
}
}
2 changes: 1 addition & 1 deletion Examples/hello-world/Sources/Subcommands/Greet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct Greet: AsyncParsableCommand {
func run() async throws {
try await withGRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: self.port),
target: .dns(host: "localhost", port: self.port),
transportSecurity: .plaintext
)
) { client in
Expand Down
2 changes: 1 addition & 1 deletion Examples/route-guide/Sources/Subcommands/GetFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct GetFeature: AsyncParsableCommand {
func run() async throws {
try await withGRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: self.port),
target: .dns(host: "localhost", port: self.port),
transportSecurity: .plaintext
)
) { client in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct ListFeatures: AsyncParsableCommand {
func run() async throws {
try await withGRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: self.port),
target: .dns(host: "localhost", port: self.port),
transportSecurity: .plaintext
)
) { client in
Expand Down
2 changes: 1 addition & 1 deletion Examples/route-guide/Sources/Subcommands/RecordRoute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct RecordRoute: AsyncParsableCommand {
func run() async throws {
try await withGRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: self.port),
target: .dns(host: "localhost", port: self.port),
transportSecurity: .plaintext
)
) { client in
Expand Down
2 changes: 1 addition & 1 deletion Examples/route-guide/Sources/Subcommands/RouteChat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct RouteChat: AsyncParsableCommand {
func run() async throws {
try await withGRPCClient(
transport: .http2NIOPosix(
target: .ipv4(host: "127.0.0.1", port: self.port),
target: .dns(host: "localhost", port: self.port),
transportSecurity: .plaintext
)
) { client in
Expand Down