This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 2c6644be make CheckHealth public for users to use this function.
(#2747)
2c6644be is described below
commit 2c6644be83d7b016693ab360832424f0069842cf
Author: Ketor <[email protected]>
AuthorDate: Mon Sep 2 17:12:13 2024 +0800
make CheckHealth public for users to use this function. (#2747)
Signed-off-by: Ketor <[email protected]>
---
src/brpc/channel.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/brpc/channel.h b/src/brpc/channel.h
index 651c5084..2ed91a64 100644
--- a/src/brpc/channel.h
+++ b/src/brpc/channel.h
@@ -205,9 +205,9 @@ public:
// Sum of weights of servers that this channel connects to.
int Weight();
-protected:
int CheckHealth();
+protected:
bool SingleServer() const { return _lb.get() == NULL; }
// Pick a server using `lb' and then send RPC. Wait for response when
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]