Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

Conversation

@ACEmilG
Copy link
Contributor

@ACEmilG ACEmilG commented Mar 26, 2018

No description provided.

Copy link
Contributor

@igorpeshansky igorpeshansky left a 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);
Copy link
Contributor

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.

Copy link
Contributor Author

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)
Copy link
Contributor

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.

Copy link
Contributor Author

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)
Copy link
Contributor

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.

Copy link
Contributor Author

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);
Copy link
Contributor

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.

Copy link
Contributor Author

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) {}
Copy link
Contributor

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.

Copy link
Contributor Author

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);
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@bmoyles0117 bmoyles0117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@igorpeshansky
Copy link
Contributor

@ACEmilG Need to resolve the conflicts.

@ACEmilG ACEmilG force-pushed the ACEmilG-configuration-rename branch from 78986e4 to 997d92a Compare March 28, 2018 15:09
@ACEmilG ACEmilG force-pushed the ACEmilG-configuration-rename branch from 997d92a to 2290d61 Compare March 28, 2018 15:23
@ACEmilG
Copy link
Contributor Author

ACEmilG commented Mar 28, 2018

@igorpeshansky: Resolved conflicts.

Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few stragglers.

MetadataAgentConfiguration::MetadataAgentConfiguration(std::istream& input)
: MetadataAgentConfiguration() {
Configuration::Configuration(std::istream& input)
: Configuration() {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

MetadataAgentConfiguration(std::istream&& input)
: MetadataAgentConfiguration(input) {}
Configuration(std::istream&& input)
: Configuration(input) {}
Copy link
Contributor

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.

Copy link
Contributor Author

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);
Copy link
Contributor

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.

Copy link
Contributor Author

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) {
Copy link
Contributor

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...

Copy link
Contributor Author

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.

Copy link
Contributor

@igorpeshansky igorpeshansky left a 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,
Copy link
Contributor

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);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@igorpeshansky igorpeshansky merged commit f7f6c42 into master Mar 28, 2018
@igorpeshansky igorpeshansky deleted the ACEmilG-configuration-rename branch March 28, 2018 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants