Skip to content
This repository was archived by the owner on Jun 21, 2020. It is now read-only.

Commit f35238d

Browse files
committed
update readme
1 parent 80e4e55 commit f35238d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ impl Server {
9494
impl HttpService for Server {
9595
type Connection = ();
9696
type ConnectionFuture = future::Ready<Result<(), std::io::Error>>;
97-
type Fut = FutureObj<'static, Result<http_service::Response, std::io::Error>>;
97+
type ResponseFuture = FutureObj<'static, Result<http_service::Response, std::io::Error>>;
9898

9999
fn connect(&self) -> Self::ConnectionFuture {
100100
future::ok(())
101101
}
102102

103-
fn respond(&self, _conn: &mut (), _req: http_service::Request) -> Self::Fut {
103+
fn respond(&self, _conn: &mut (), _req: http_service::Request) -> Self::ResponseFuture {
104104
let message = self.message.clone();
105105
FutureObj::new(Box::new(async move {
106106
Ok(Response::new(http_service::Body::from(message)))

0 commit comments

Comments
 (0)