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
auto f = then([=](Try<T>&& t) {
MoveWrapper<Promise<T>> promise;
MoveWrapper<Try<T>> tw(std::move(t));
- auto f = promise->getFuture();
+ auto f2 = promise->getFuture();
executor->add([=]() mutable { promise->fulfilTry(std::move(*tw)); });
- return f;
+ return f2;
});
f.deactivate();
return f;