-
Notifications
You must be signed in to change notification settings - Fork 11
Rename MetadataAgentConfiguration to Configuration #91
Conversation
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on one line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/docker.h
Outdated
| public: | ||
| DockerUpdater(const MetadataAgentConfiguration& config, | ||
| DockerUpdater(const Configuration& config, | ||
| MetadataStore* store) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on one line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/instance.h
Outdated
| public: | ||
| InstanceUpdater(const MetadataAgentConfiguration& config, | ||
| InstanceUpdater(const Configuration& config, | ||
| MetadataStore* store) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on one line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| public: | ||
| KubernetesUpdater(const MetadataAgentConfiguration& config, | ||
| KubernetesUpdater(const Configuration& config, | ||
| MetadataStore* store); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on one line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/store.cc
Outdated
|
|
||
| MetadataStore::MetadataStore(const MetadataAgentConfiguration& config) | ||
| MetadataStore::MetadataStore(const Configuration& config) | ||
| : config_(config) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can fit on the previous line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MetadataStore* store, can fit on the previous line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
bmoyles0117
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@ACEmilG Need to resolve the conflicts. |
78986e4 to
997d92a
Compare
997d92a to
2290d61
Compare
|
@igorpeshansky: Resolved conflicts. |
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few stragglers.
src/configuration.cc
Outdated
| MetadataAgentConfiguration::MetadataAgentConfiguration(std::istream& input) | ||
| : MetadataAgentConfiguration() { | ||
| Configuration::Configuration(std::istream& input) | ||
| : Configuration() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on the previous line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/configuration.h
Outdated
| MetadataAgentConfiguration(std::istream&& input) | ||
| : MetadataAgentConfiguration(input) {} | ||
| Configuration(std::istream&& input) | ||
| : Configuration(input) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fits on the previous line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as in updater.h:
MetadataStore* store, can fit on the previous line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| namespace google { | ||
|
|
||
| void VerifyDefaultConfig(const MetadataAgentConfiguration& config) { | ||
| void VerifyDefaultConfig(const Configuration& config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Optional] Not directly related to this PR, but this could have been in an anonymous namespace...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll skip this for now, but deserves to get cleaned up at some later point.
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
igorpeshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
No description provided.