Skip to content

Commit c87b642

Browse files
authored
fix: .with_stateful_mode -> .with_legacy_session_mode (#1015)
1 parent 5b05341 commit c87b642

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/rmcp/tests/test_streamable_http_json_response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async fn stateless_negotiated_terminal_response_returns_application_json() -> an
182182
let ct = CancellationToken::new();
183183
let (client, url, ct) = spawn_progress_server(
184184
StreamableHttpServerConfig::default()
185-
.with_stateful_mode(false)
185+
.with_legacy_session_mode(false)
186186
.with_json_response(true)
187187
.with_sse_keep_alive(None)
188188
.with_cancellation_token(ct.child_token()),
@@ -277,7 +277,7 @@ async fn stateless_negotiated_json_response_falls_back_to_sse_for_progress() ->
277277
let ct = CancellationToken::new();
278278
let (client, url, ct) = spawn_progress_server(
279279
StreamableHttpServerConfig::default()
280-
.with_stateful_mode(false)
280+
.with_legacy_session_mode(false)
281281
.with_json_response(true)
282282
.with_sse_keep_alive(None)
283283
.with_cancellation_token(ct.child_token()),

0 commit comments

Comments
 (0)