fix example

This commit is contained in:
Rob Ede 2021-05-07 18:17:01 +01:00
parent ab3452dee1
commit 8519874cae
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ async fn handler(req: Request) -> Result<Response<BodyStream<Heartbeat>>, Error>
// handshake will always fail under HTTP/2 // handshake will always fail under HTTP/2
log::info!("responding"); log::info!("responding");
Ok(res.message_body(BodyStream::new(Heartbeat::new(ws::Codec::new())))) Ok(res.message_body(BodyStream::new(Heartbeat::new(ws::Codec::new())))?)
} }
struct Heartbeat { struct Heartbeat {