Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Small fixes #1222

Merged
merged 4 commits into from
Jun 5, 2018
Merged

Small fixes #1222

merged 4 commits into from
Jun 5, 2018

Conversation

AndreaLanfranchi
Copy link
Collaborator

Some tiny adjustments

Immediate binding to port 0 causes acceptor to find first available port
and starts anyway.
@@ -40,7 +40,7 @@ static void diffToTarget(uint32_t *target, double diff)
}


EthStratumClient::EthStratumClient(boost::asio::io_service & io_service, int worktimeout, int responsetimeout, string const & email, bool const & submitHashrate) : PoolClient(),
EthStratumClient::EthStratumClient(boost::asio::io_service & io_service, int worktimeout, int responsetimeout, string email, bool submitHashrate) : PoolClient(),
Copy link
Contributor

Choose a reason for hiding this comment

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

If you are passing std::string by value you should also move it later on in

m_email(std::move(email))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually m_email should be no longer needed as it's a legacy of old -O argument.
Will drop it in next jobs.

@chfast chfast merged commit 67ac3d4 into master Jun 5, 2018
@chfast chfast deleted the small-fixes branch June 5, 2018 15:56
chfast added a commit that referenced this pull request Jun 5, 2018
@chfast
Copy link
Contributor

chfast commented Jun 5, 2018

Add to CHANGELOG in ca5fdd5.

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.

2 participants