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/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 6faa88d2 Fix MacOS warning: bool literal returned from 'main' [-Wmain]
(#2020)
6faa88d2 is described below
commit 6faa88d2d418c70c283f5ba15731e9d6e17fcbb7
Author: Jiashun Zhu <[email protected]>
AuthorDate: Mon Nov 28 03:03:16 2022 +0100
Fix MacOS warning: bool literal returned from 'main' [-Wmain] (#2020)
---
tools/rpc_replay/rpc_replay.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rpc_replay/rpc_replay.cpp b/tools/rpc_replay/rpc_replay.cpp
index 412397b2..2065c238 100644
--- a/tools/rpc_replay/rpc_replay.cpp
+++ b/tools/rpc_replay/rpc_replay.cpp
@@ -254,7 +254,7 @@ int main(int argc, char* argv[]) {
if (req_rate_per_thread > rate_limit_per_thread) {
LOG(ERROR) << "req_rate: " << (int64_t) req_rate_per_thread << " is
too large in one thread. The rate limit is "
<< rate_limit_per_thread << " in one thread";
- return false;
+ return -1;
}
std::vector<bthread_t> bids;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]