Skip to content

Commit bce847f

Browse files
committed
Refactor CollectorConfig
Changes done: - Remove InitCollectorConfig and replace it with a proper constructor. - Delete default constructor. - Created multiple helper methods in order to split initialization of the configuration. - Inlined several simple getters and setters for consistency. - Removed static constexpr variables that could be directly applied as default member initializers. - Replaced const char*[] with std::array.
1 parent d6e4d5b commit bce847f

File tree

6 files changed

+188
-252
lines changed

6 files changed

+188
-252
lines changed

collector/collector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ int main(int argc, char** argv) {
136136
CLOG(FATAL) << "Error parsing arguments";
137137
}
138138

139-
CollectorConfig config;
140-
config.InitCollectorConfig(args);
139+
CollectorConfig config(args);
141140

142141
setCoreDumpLimit(config.IsCoreDumpEnabled());
143142

0 commit comments

Comments
 (0)