refactor: make McpSyncServerExchange.ping() return response value
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
parent
c0b398c650
commit
b328051685
1 changed files with 4 additions and 4 deletions
|
|
@ -108,11 +108,11 @@ public class McpSyncServerExchange {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a ping request to the client.
|
* Sends a synchronous ping request to the client.
|
||||||
* @return A Mono that completes with clients's ping response
|
* @return
|
||||||
*/
|
*/
|
||||||
public void ping() {
|
public Object ping() {
|
||||||
this.exchange.ping().block();
|
return this.exchange.ping().block();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue