mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-26 17:02:32 +01:00
Fix readme and release notes.
This commit is contained in:
@@ -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}!")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user