Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small touch ups #3

Conversation

Karsten1987
Copy link
Collaborator

I took the lambda out and touched up some white space.

@Karsten1987
Copy link
Collaborator Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

subscriptions_.clear();
}

std::future<void> Recorder::launch_topics_discovery(
void Recorder::launch_topics_discovery(
Copy link

Choose a reason for hiding this comment

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

If you move the async call out the function should no longer have launch in its name.

@@ -44,38 +44,36 @@ void Recorder::record(const RecordOptions & record_options)

std::future<void> discovery_future;
if (!record_options.is_discovery_disabled) {
discovery_future = launch_topics_discovery(
auto launch_discovery = std::bind(
Copy link

Choose a reason for hiding this comment

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

I prefer the lambda syntax over bind.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i call the function directly because I don't see the point in calling a function which just wraps a lambda.

@Karsten1987
Copy link
Collaborator Author

forgot rtps dynamic:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@anhosi
Copy link

anhosi commented Dec 7, 2018

lgtm

@anhosi anhosi merged commit 3d558c8 into feature/auto_discovery_of_new_topics Dec 7, 2018
@anhosi anhosi deleted the feature/auto_discovery_of_new_topics_touch_up branch December 10, 2018 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants