Skip to content

Commit 78efca2

Browse files
committed
Update Echo PackageManager example for 0.1.9 API.
1 parent b450ad3 commit 78efca2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Examples/Echo/PackageManager/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import PackageDescription
3434
let package = Package (
3535
name: "Echo",
3636
dependencies: [
37-
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,1,8)),
37+
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,1,9)),
3838
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(0,9,24)),
3939
]
4040
)

Examples/Echo/PackageManager/Sources/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ if client != "" {
127127
if client == "expand" {
128128
let requestMessage = Echo_EchoRequest(text:message)
129129
print("Sending: " + requestMessage.text)
130-
let expandCall = try service.expand(requestMessage)
130+
let expandCall = try service.expand(requestMessage) {result in }
131131
var running = true
132132
while running {
133133
do {
@@ -142,7 +142,7 @@ if client != "" {
142142

143143
// Client streaming
144144
if client == "collect" {
145-
let collectCall = try service.collect()
145+
let collectCall = try service.collect() {result in }
146146

147147
let parts = message.components(separatedBy:" ")
148148
for part in parts {
@@ -158,7 +158,7 @@ if client != "" {
158158

159159
// Bidirectional streaming
160160
if client == "update" {
161-
let updateCall = try service.update()
161+
let updateCall = try service.update() {result in}
162162

163163
DispatchQueue.global().async {
164164
var running = true

0 commit comments

Comments
 (0)