Rename MetadataAgentConfiguration to Configuration#91
Conversation
igorpeshansky
left a comment
There was a problem hiding this comment.
I'm sure you've seen this branch. 😄
Some stylistic comments...
src/api_server.h
Outdated
| public: | ||
| Handler(const MetadataAgentConfiguration& config, | ||
| Handler(const Configuration& config, | ||
| const MetadataStore& store); |
There was a problem hiding this comment.
Fits on one line now.
src/docker.h
Outdated
| public: | ||
| DockerUpdater(const MetadataAgentConfiguration& config, | ||
| DockerUpdater(const Configuration& config, | ||
| MetadataStore* store) |
There was a problem hiding this comment.
Fits on one line now.
src/instance.h
Outdated
| public: | ||
| InstanceUpdater(const MetadataAgentConfiguration& config, | ||
| InstanceUpdater(const Configuration& config, | ||
| MetadataStore* store) |
There was a problem hiding this comment.
Fits on one line now.
| public: | ||
| KubernetesUpdater(const MetadataAgentConfiguration& config, | ||
| KubernetesUpdater(const Configuration& config, | ||
| MetadataStore* store); |
There was a problem hiding this comment.
Fits on one line now.
src/store.cc
Outdated
|
|
||
| MetadataStore::MetadataStore(const MetadataAgentConfiguration& config) | ||
| MetadataStore::MetadataStore(const Configuration& config) | ||
| : config_(config) {} |
There was a problem hiding this comment.
This can fit on the previous line now.
src/updater.h
Outdated
|
|
||
| MetadataUpdater(const MetadataAgentConfiguration& config, | ||
| MetadataUpdater(const Configuration& config, | ||
| MetadataStore* store, const std::string& name); |
There was a problem hiding this comment.
MetadataStore* store, can fit on the previous line now.
|
@ACEmilG Need to resolve the conflicts. |
78986e4 to
997d92a
Compare
997d92a to
2290d61
Compare
|
@igorpeshansky: Resolved conflicts. |
src/configuration.cc
Outdated
| MetadataAgentConfiguration::MetadataAgentConfiguration(std::istream& input) | ||
| : MetadataAgentConfiguration() { | ||
| Configuration::Configuration(std::istream& input) | ||
| : Configuration() { |
There was a problem hiding this comment.
Fits on the previous line now.
src/configuration.h
Outdated
| MetadataAgentConfiguration(std::istream&& input) | ||
| : MetadataAgentConfiguration(input) {} | ||
| Configuration(std::istream&& input) | ||
| : Configuration(input) {} |
There was a problem hiding this comment.
Fits on the previous line now.
src/reporter.h
Outdated
| public: | ||
| MetadataReporter(const MetadataAgentConfiguration& config, | ||
| MetadataReporter(const Configuration& config, | ||
| MetadataStore* store, double period_s); |
There was a problem hiding this comment.
Same comment as in updater.h:
MetadataStore* store, can fit on the previous line now.
| namespace google { | ||
|
|
||
| void VerifyDefaultConfig(const MetadataAgentConfiguration& config) { | ||
| void VerifyDefaultConfig(const Configuration& config) { |
There was a problem hiding this comment.
[Optional] Not directly related to this PR, but this could have been in an anonymous namespace...
There was a problem hiding this comment.
I'll skip this for now, but deserves to get cleaned up at some later point.
src/api_server.h
Outdated
| public: | ||
| MetadataApiServer(const MetadataAgentConfiguration& config, | ||
| MetadataApiServer(const Configuration& config, | ||
| const MetadataStore& store, int server_threads, |
There was a problem hiding this comment.
Sorry, didn't notice this before. Same here: const MetadataStore& store fits on the previous line. In fact, this can become:
MetadataApiServer(const Configuration& config, const MetadataStore& store,
int server_threads, const std::string& host, int port);
No description provided.