This is an automated email from the ASF dual-hosted git repository. jiashunzhu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new 1ecb07b fix_BRPC_VALIDATE_GFLAG new 36828a5 Merge pull request #1426 from guodongxiaren/fix_BRPC_VALIDATE_GFLAG 1ecb07b is described below commit 1ecb07b6e5d3b34b305ffe4efa71299f4c5b4f84 Author: guodongxiaren <879231...@qq.com> AuthorDate: Wed Jun 9 09:20:24 2021 +0800 fix_BRPC_VALIDATE_GFLAG --- docs/cn/flags.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cn/flags.md b/docs/cn/flags.md index d2c4b3f..74da50c 100644 --- a/docs/cn/flags.md +++ b/docs/cn/flags.md @@ -113,7 +113,7 @@ r31658之后支持可视化地修改,在浏览器上访问时将看到(R)下 ```c++ DEFINE_bool(hex_log_id, false, "Show log_id in hexadecimal"); -BAIDU_RPC_VALIDATE_GFLAG(hex_log_id, brpc::PassValidate/*always true*/); +BRPC_VALIDATE_GFLAG(hex_log_id, brpc::PassValidate/*always true*/); ``` 这个flag是单纯的开关,修改后不需要更新其他数据(没有处理逻辑),代码中前面看到true后面看到false也不会产生什么后果(不需要线程同步),所以我们让其默认可重载。 @@ -122,7 +122,7 @@ BAIDU_RPC_VALIDATE_GFLAG(hex_log_id, brpc::PassValidate/*always true*/); ```c++ DEFINE_int32(health_check_interval, 3, "seconds between consecutive health-checkings"); -BAIDU_RPC_VALIDATE_GFLAG(health_check_interval, brpc::PositiveInteger); +BRPC_VALIDATE_GFLAG(health_check_interval, brpc::PositiveInteger); ``` 以上操作都可以在命令行中进行: --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org