Lambda formatting that works across clang-format versions (#2250)

This commit is contained in:
cryptocode 2019-08-25 15:46:39 +02:00 committed by GitHub
commit f689cff225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1020,7 +1020,8 @@ public:
if ((outstanding.empty () || node->unresponsive_work_peers) && (node->config.work_threads != 0 || node->work.opencl))
{
local_generation_started = true;
node->work.generate (this_l->root, [this_l](boost::optional<uint64_t> const & work_a) {
node->work.generate (
this_l->root, [this_l](boost::optional<uint64_t> const & work_a) {
if (work_a)
{
this_l->set_once (work_a.value ());