Commit a0d5122f authored by Hans Fugal's avatar Hans Fugal Committed by Tudor Bosman

(wangle) fix shadow

Summary: Not sure why this shadow error didn't turn up in my tests, but whatevs

Test Plan: traffic manager builds without warning-errors

Reviewed By: suhas@fb.com

Subscribers: hannesr, net-systems@, fugalh, exa

FB internal diff: D1421495

Tasks: 4653938
parent 3454265d
...@@ -193,9 +193,9 @@ inline Future<T> Future<T>::via(Executor* executor) { ...@@ -193,9 +193,9 @@ inline Future<T> Future<T>::via(Executor* executor) {
auto f = then([=](Try<T>&& t) { auto f = then([=](Try<T>&& t) {
MoveWrapper<Promise<T>> promise; MoveWrapper<Promise<T>> promise;
MoveWrapper<Try<T>> tw(std::move(t)); MoveWrapper<Try<T>> tw(std::move(t));
auto f = promise->getFuture(); auto f2 = promise->getFuture();
executor->add([=]() mutable { promise->fulfilTry(std::move(*tw)); }); executor->add([=]() mutable { promise->fulfilTry(std::move(*tw)); });
return f; return f2;
}); });
f.deactivate(); f.deactivate();
return f; return f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment