mirror of
https://github.com/clearlinux/folly.git
synced 2026-09-01 11:15:52 +00:00
fix build
Summary: ^ Test Plan: compiles Reviewed By: hans@fb.com Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant FB internal diff: D1998822 Signature: t1:1998822:1429211074:3ff9b0827a8ce029efa06a4a78ecea2b07eae3a8
This commit is contained in:
committed by
Alecs King
parent
3e68d7b45c
commit
f706bdbd7f
@@ -345,7 +345,7 @@ Future<T>::onError(F&& func) {
|
||||
try {
|
||||
auto f2 = (*funcm)(std::move(t.exception()));
|
||||
f2.setCallback_([pm](Try<T> t2) mutable {
|
||||
pm->fulfilTry(std::move(t2));
|
||||
pm->setTry(std::move(t2));
|
||||
});
|
||||
} catch (const std::exception& e2) {
|
||||
pm->setException(exception_wrapper(std::current_exception(), e2));
|
||||
@@ -353,7 +353,7 @@ Future<T>::onError(F&& func) {
|
||||
pm->setException(exception_wrapper(std::current_exception()));
|
||||
}
|
||||
} else {
|
||||
pm->fulfilTry(std::move(t));
|
||||
pm->setTry(std::move(t));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -378,11 +378,11 @@ Future<T>::onError(F&& func) {
|
||||
auto funcm = folly::makeMoveWrapper(std::move(func));
|
||||
setCallback_([pm, funcm](Try<T> t) mutable {
|
||||
if (t.hasException()) {
|
||||
pm->fulfil([&]{
|
||||
pm->setWith([&]{
|
||||
return (*funcm)(std::move(t.exception()));
|
||||
});
|
||||
} else {
|
||||
pm->fulfilTry(std::move(t));
|
||||
pm->setTry(std::move(t));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user