fix: remove batched json rpc support (#408)
* fix: remove batched json rpc support * fix(test): fix schema
This commit is contained in:
parent
7d46b39b49
commit
f381c2b899
1 changed files with 2 additions and 3497 deletions
|
|
@ -5,9 +5,8 @@ use crate::{
|
|||
error::ErrorData as McpError,
|
||||
model::{
|
||||
CancelledNotification, CancelledNotificationParam, Extensions, GetExtensions, GetMeta,
|
||||
JsonRpcBatchRequestItem, JsonRpcBatchResponseItem, JsonRpcError, JsonRpcMessage,
|
||||
JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, Meta, NumberOrString, ProgressToken,
|
||||
RequestId, ServerJsonRpcMessage,
|
||||
JsonRpcError, JsonRpcMessage, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, Meta,
|
||||
NumberOrString, ProgressToken, RequestId, ServerJsonRpcMessage,
|
||||
},
|
||||
transport::{DynamicTransportError, IntoTransport, Transport},
|
||||
};
|
||||
|
|
@ -835,20 +834,6 @@ where
|
|||
}
|
||||
}
|
||||
}
|
||||
Event::PeerMessage(JsonRpcMessage::BatchRequest(batch)) => {
|
||||
batch_messages.extend(
|
||||
batch
|
||||
.into_iter()
|
||||
.map(JsonRpcBatchRequestItem::into_non_batch_message),
|
||||
);
|
||||
}
|
||||
Event::PeerMessage(JsonRpcMessage::BatchResponse(batch)) => {
|
||||
batch_messages.extend(
|
||||
batch
|
||||
.into_iter()
|
||||
.map(JsonRpcBatchResponseItem::into_non_batch_message),
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
let sink_close_result = transport.close().await;
|
||||
|
|
|
|||
Loading…
Reference in a new issue