Skip to content

Commit 156a92c

Browse files
authored
fix: don't wrap errors in streamable http auth client (#353)
1 parent 855a171 commit 156a92c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/rmcp/src/transport/common/auth/streamable_http_client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ impl<C> StreamableHttpClient for AuthClient<C>
66
where
77
C: StreamableHttpClient + Send + Sync,
88
{
9-
type Error = StreamableHttpError<C::Error>;
9+
type Error = C::Error;
1010

1111
async fn delete_session(
1212
&self,
@@ -21,7 +21,6 @@ where
2121
self.http_client
2222
.delete_session(uri, session_id, auth_token)
2323
.await
24-
.map_err(StreamableHttpError::Client)
2524
}
2625

2726
async fn get_stream(
@@ -40,7 +39,6 @@ where
4039
self.http_client
4140
.get_stream(uri, session_id, last_event_id, auth_token)
4241
.await
43-
.map_err(StreamableHttpError::Client)
4442
}
4543

4644
async fn post_message(
@@ -59,6 +57,5 @@ where
5957
self.http_client
6058
.post_message(uri, message, session_id, auth_token)
6159
.await
62-
.map_err(StreamableHttpError::Client)
6360
}
6461
}

0 commit comments

Comments
 (0)