You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/helloworld-tutorial.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ path = "src/client.rs"
115
115
[dependencies]
116
116
tonic = "0.4"
117
117
prost = "0.7"
118
-
tokio = { version = "0.2", features = ["macros"] }
118
+
tokio = { version = "1.0", features = ["macros"] }
119
119
120
120
[build-dependencies]
121
121
tonic-build = "0.4"
@@ -179,7 +179,7 @@ impl Greeter for MyGreeter {
179
179
Finally, let's define the Tokio runtime that our server will actually run on. This requires Tokio to be added as a dependency, so make sure you included that!
The client is much simpler than the server as we don't need to implement any service methods, just make requests. Here is a Tokio runtime which will make our request and print the response to your terminal:
0 commit comments