chore: use typed notifications from rmcp (#3653)
This commit is contained in:
@@ -835,7 +835,7 @@ mod tests {
|
||||
CallToolResult, InitializeResult, ListPromptsResult, ListResourcesResult, ListToolsResult,
|
||||
ReadResourceResult,
|
||||
};
|
||||
use rmcp::model::{GetPromptResult, JsonRpcMessage};
|
||||
use rmcp::model::{GetPromptResult, ServerNotification};
|
||||
use serde_json::json;
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
@@ -891,7 +891,7 @@ mod tests {
|
||||
Err(Error::NotInitialized)
|
||||
}
|
||||
|
||||
async fn subscribe(&self) -> mpsc::Receiver<JsonRpcMessage> {
|
||||
async fn subscribe(&self) -> mpsc::Receiver<ServerNotification> {
|
||||
mpsc::channel(1).1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user