Fix readme and release notes.

This commit is contained in:
Tim Kuehn
2023-12-29 21:00:23 -08:00
parent 263ef8a897
commit 2c241cc809
2 changed files with 3 additions and 8 deletions

View File

@@ -118,13 +118,8 @@ implement it for our Server struct.
struct HelloServer;
impl World for HelloServer {
// Each defined rpc generates two items in the trait, a fn that serves the RPC, and
// an associated type representing the future output by the fn.
type HelloFut = Ready<String>;
fn hello(self, _: context::Context, name: String) -> Self::HelloFut {
future::ready(format!("Hello, {name}!"))
async fn hello(self, _: context::Context, name: String) -> String {
format!("Hello, {name}!")
}
}
```

View File

@@ -14,7 +14,7 @@
### New Features
- Request hooks are added to the serve trait, so that it's easy to hook in cross-cutting
functionality look throttling, authorization, etc.
functionality like throttling, authorization, etc.
- The Client trait is back! This makes it possible to hook in generic client functionality like load
balancing, retries, etc.