feat: allow failable service creation in streamable HTTP tower service (#244)
* feat: allow failable service creation in streamable HTTP tower service In our setup we need to lookup some info that may fail before we serve the request. * Fix examples build
This commit is contained in:
parent
c4f252a21d
commit
73188eff6f
1 changed files with 12 additions and 8 deletions
|
|
@ -96,7 +96,7 @@ async fn test_with_js_streamable_http_client() -> anyhow::Result<()> {
|
|||
|
||||
let service: StreamableHttpService<Calculator, LocalSessionManager> =
|
||||
StreamableHttpService::new(
|
||||
Calculator::default,
|
||||
|| Ok(Calculator),
|
||||
Default::default(),
|
||||
StreamableHttpServerConfig {
|
||||
stateful_mode: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue