From 2c241cc8096a32697fec5aa4809f34a0c3fa97c2 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Fri, 29 Dec 2023 21:00:23 -0800 Subject: [PATCH] Fix readme and release notes. --- README.md | 9 ++------- RELEASES.md | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6db83b57..19f08182 100644 --- a/README.md +++ b/README.md @@ -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; - - 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}!") } } ``` diff --git a/RELEASES.md b/RELEASES.md index 48ca96a7..8ff8d1ed 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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.