Skip to content

Commit

Permalink
Fix readme and release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tikue committed Dec 30, 2023
1 parent 263ef8a commit 2c241cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}!")
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 2c241cc

Please sign in to comment.