fix build
authorJames Sedgwick <jsedgwick@fb.com>
Thu, 16 Apr 2015 19:18:42 +0000 (12:18 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:42:50 +0000 (16:42 -0700)
Summary:
^

Test Plan: compiles

Reviewed By: hans@fb.com

Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D1998822

Signature: t1:1998822:1429211074:3ff9b0827a8ce029efa06a4a78ecea2b07eae3a8

folly/futures/Future-inl.h

index 186afe365069806d13156d8a2e67c47d306d9776..abcfcb86583606c4664c66825d7782a7abaa663d 100644 (file)
@@ -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));
     }
   });