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

Refactor well named functionality in service::Endpoint into new struct #572

Merged
merged 1 commit into from
Apr 30, 2019

Conversation

michael-loki
Copy link
Contributor

Does two things:

  • simplifies logic in the main class
  • makes these things more testable/composable

++itr;
}
}
EndpointUtil::TickRemoteSessions(now, m_RemoteSessions, m_DeadSessions);
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 don't like this particularly. In C++17 this could just be:

m_DeadSessions.merge(EndpointUtil::TickRemoteSessions(now, m_RemoteSessions));

which I think would cleaner imo

@majestrate majestrate merged commit c576b8d into oxen-io:master Apr 30, 2019
@michael-loki michael-loki deleted the service_endpointutil branch August 13, 2019 23:26
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