[chore](build) Use include-what-you-use to optimize includes (PART II) (#18761)
Currently, there are some useless includes in the codebase. We can use a tool named include-what-you-use to optimize these includes. By using a strict include-what-you-use policy, we can get lots of benefits from it.
This commit is contained in:
@ -17,8 +17,13 @@
|
||||
|
||||
#include "util/brpc_client_cache.h"
|
||||
|
||||
namespace doris {
|
||||
#include <gen_cpp/function_service.pb.h> // IWYU pragma: keep
|
||||
#include <gen_cpp/internal_service.pb.h> // IWYU pragma: keep
|
||||
|
||||
#include "util/doris_metrics.h"
|
||||
#include "util/metrics.h"
|
||||
|
||||
namespace doris {
|
||||
DEFINE_GAUGE_METRIC_PROTOTYPE_2ARG(brpc_endpoint_stub_count, MetricUnit::NOUNIT);
|
||||
|
||||
DEFINE_GAUGE_METRIC_PROTOTYPE_2ARG(brpc_function_endpoint_stub_count, MetricUnit::NOUNIT);
|
||||
|
||||
Reference in New Issue
Block a user