Skip to content

Commit

Permalink
Update Examples for 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks committed Feb 3, 2018
1 parent 55077ac commit 11086e9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Examples/Echo/Generated/echo.grpc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ internal class Echo_EchoSession {
fileprivate var handler : gRPC.Handler
internal var requestMetadata : Metadata { return handler.requestMetadata }

internal var statusCode : Int = 0
internal var statusCode : StatusCode = .ok
internal var statusMessage : String = "OK"
internal var initialMetadata : Metadata = Metadata()
internal var trailingMetadata : Metadata = Metadata()
Expand Down Expand Up @@ -637,8 +637,8 @@ internal class Echo_EchoServer {
default:
// handle unknown requests
try handler.receiveMessage(initialMetadata:Metadata()) {(requestData) in
try handler.sendResponse(statusCode:12,
statusMessage:"unimplemented " + handler.method,
try handler.sendResponse(statusCode:.unimplemented,
statusMessage:"unknown method " + handler.method,
trailingMetadata:Metadata())
}
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/Echo/PackageManager/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "Echo",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,2)),
.Package(url: "https://github.com/kylef/Commander.git", Version(0,8,0)),
]
Expand Down
2 changes: 1 addition & 1 deletion Examples/Echo2/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "Echo",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,2)),
.Package(url: "https://github.com/kylef/Commander.git", Version(0,8,0)),
]
Expand Down
2 changes: 1 addition & 1 deletion Examples/Google/Datastore/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "Datastore",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,2)),
.Package(url: "https://github.com/google/auth-library-swift.git", Version(0,3,6)),
.Package(url: "https://github.com/kylef/Commander.git", Version(0,8,0)),
Expand Down
2 changes: 1 addition & 1 deletion Examples/Google/NaturalLanguage/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "NaturalLanguage",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,2)),
.Package(url: "https://github.com/google/auth-library-swift.git", Version(0,3,6)),
]
Expand Down
2 changes: 1 addition & 1 deletion Examples/Google/Spanner/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "Spanner",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,2)),
.Package(url: "https://github.com/google/auth-library-swift.git", Version(0,3,6)),
.Package(url: "https://github.com/kylef/Commander.git", Version(0,8,0)),
Expand Down
2 changes: 1 addition & 1 deletion Examples/Simple/PackageManager/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import PackageDescription
let package = Package (
name: "Simple",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,2)),
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,3,3)),
.Package(url: "https://github.com/kylef/Commander.git", Version(0,8,0)),
]
)
2 changes: 1 addition & 1 deletion Examples/Simple/PackageManager/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func server() throws {
["1": "one"],
["2": "two"]])
try requestHandler.sendResponse(message:replyMessage.data(using: .utf8)!,
statusCode:0,
statusCode:.ok,
statusMessage:"OK",
trailingMetadata:trailingMetadataToSend)

Expand Down
2 changes: 1 addition & 1 deletion Plugin/Sources/protoc-gen-swiftgrpc/templates.swift

Large diffs are not rendered by default.

0 comments on commit 11086e9

Please sign in to comment.