Skip to content

Commit ca397ec

Browse files
committed
cleanup unused
1 parent 95607cd commit ca397ec

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

crates/rmcp/src/handler/server.rs

+1-18
Original file line numberDiff line numberDiff line change
@@ -229,22 +229,5 @@ pub trait ServerHandler: Sized + Send + Sync + 'static {
229229
fn get_info(&self) -> ServerInfo {
230230
ServerInfo::default()
231231
}
232-
233-
fn log(&self, level: LoggingLevel, message: &str) -> impl Future<Output = ()> + Send + '_ {
234-
let peer = self.get_peer();
235-
let params = LoggingMessageNotificationParam {
236-
level,
237-
data: serde_json::json!({
238-
"message": message,
239-
"timestamp": chrono::Utc::now().to_rfc3339(),
240-
}),
241-
logger: None,
242-
};
243-
244-
async move {
245-
if let Some(p) = peer {
246-
let _ = p.notify_logging_message(params).await;
247-
}
248-
}
249-
}
232+
250233
}

0 commit comments

Comments
 (0)