convert to lambda

pull/1658/head
Jeff Becker 3 years ago
parent 3594d3e211
commit a0b8fe144a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -308,14 +308,15 @@ namespace llarp
self->context->PutTransitHop(self->hop);
// forward to next hop
using std::placeholders::_1;
auto func = std::bind(
&OnForwardLRCMResult,
self->context->Router(),
self->hop,
self->hop->info.rxID,
self->hop->info.downstream,
self->hop->pathKey,
_1);
auto func = [self](auto status) {
OnForwardLRCMResult(
self->context->Router(),
self->hop,
self->hop->info.rxID,
self->hop->info.downstream,
self->hop->pathKey,
status);
};
self->context->ForwardLRCM(self->hop->info.upstream, self->frames, func);
self->hop = nullptr;
}

Loading…
Cancel
Save