feat: throw initialize error detail (#192)
This commit is contained in:
parent
4dc0cad499
commit
817e62d895
1 changed files with 115 additions and 93 deletions
|
|
@ -327,7 +327,10 @@ impl StreamableHttpServer {
|
|||
let service = service_provider();
|
||||
let ct = self.config.ct.child_token();
|
||||
tokio::spawn(async move {
|
||||
let server = service.serve_with_ct(transport, ct).await?;
|
||||
let server = service
|
||||
.serve_with_ct(transport, ct)
|
||||
.await
|
||||
.map_err(tokio::io::Error::other)?;
|
||||
server.waiting().await?;
|
||||
tokio::io::Result::Ok(())
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue