fix: Small improvement to progress demo (#898)
Signed-off-by: Dawid Nowak <nowakd@gmail.com>
This commit is contained in:
parent
2536a05992
commit
52e731bec6
1 changed files with 26 additions and 55 deletions
|
|
@ -10,6 +10,7 @@ use rmcp::{
|
|||
|
||||
mod common;
|
||||
use common::progress_demo::ProgressDemo;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
const HTTP_BIND_ADDRESS: &str = "127.0.0.1:8001";
|
||||
|
||||
|
|
@ -20,6 +21,10 @@ async fn main() -> anyhow::Result<()> {
|
|||
.nth(1)
|
||||
.unwrap_or_else(|| env::var("TRANSPORT_MODE").unwrap_or_else(|_| "stdio".to_string()));
|
||||
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.init();
|
||||
|
||||
match transport_mode.as_str() {
|
||||
"stdio" => run_stdio().await,
|
||||
"http" | "streamhttp" => run_streamable_http().await,
|
||||
|
|
|
|||
Loading…
Reference in a new issue