fix(examples): add clients in examples's readme (#225)

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
jokemanfire 2025-05-26 18:32:29 +08:00 • committed by GitHub
commit 0d52b7d24f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ pub struct GenericService<DS: DataService> {
#[tool(tool_box)]
impl<DS: DataService> GenericService<DS> {
#[allow(dead_code)]
pub fn new(data_service: DS) -> Self {
Self {
data_service: Arc::new(data_service),
@ -62,6 +63,7 @@ impl<DS: DataService> GenericService<DS> {
}
}
#[tool(tool_box)]
impl<DS: DataService> ServerHandler for GenericService<DS> {
fn get_info(&self) -> ServerInfo {
ServerInfo {