zyearn commented on a change in pull request #1005: ignore ELIMIT for circuit breaker URL: https://github.com/apache/incubator-brpc/pull/1005#discussion_r361897662
########## File path: src/brpc/circuit_breaker.cpp ########## @@ -14,13 +14,22 @@ // // Authors: Lei He ([email protected]) +#include "brpc/circuit_breaker.h" + #include <cmath> +#include <set> +#include <mutex> #include <gflags/gflags.h> -#include <butil/time.h> -#include "brpc/circuit_breaker.h" + +#include "butil/strings/string_number_conversions.h" +#include "butil/strings/string_split.h" +#include "butil/time.h" namespace brpc { +DEFINE_string(circuit_breaker_ignored_error_codes, "2004", Review comment: 如果是可配置的,说明用户在某些场景需要不ignore ELIMIT么 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
