You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/08/12 04:19:07 UTC
[GitHub] [doris] adonis0147 commented on a diff in pull request #11714: [fix](thirdparty) Fix the errors while building brpc
adonis0147 commented on code in PR #11714:
URL: https://github.com/apache/doris/pull/11714#discussion_r944101487
##########
thirdparty/patches/brpc-1.2.0.patch:
##########
@@ -0,0 +1,13 @@
+diff --git a/tools/rpc_press/rpc_press_impl.cpp b/tools/rpc_press/rpc_press_impl.cpp
+index 8a873eff..d1ff2a1e 100644
+--- a/tools/rpc_press/rpc_press_impl.cpp
++++ b/tools/rpc_press/rpc_press_impl.cpp
+@@ -222,7 +222,7 @@ void RpcPress::sync_client() {
+ int64_t last_expected_time = butil::monotonic_time_ns();
+ const int64_t interval = (int64_t) (1000000000L / req_rate);
+ // the max tolerant delay between end_time and expected_time. 10ms or 10 intervals
+- int64_t max_tolerant_delay = std::max(10000000L, 10 * interval);
++ int64_t max_tolerant_delay = std::max<int64_t>(10000000L, 10 * interval);
Review Comment:
I think the answer is yes. I will submit a pull request to BRPC.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org