]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: specialize errorator<> for future<> 41941/head
authorKefu Chai <kchai@redhat.com>
Sat, 19 Jun 2021 11:13:17 +0000 (19:13 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 19 Jun 2021 11:13:19 +0000 (19:13 +0800)
otherwise it always needs a return value.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/errorator.h

index 258124b50945579fdd867f472c876d25dd65a643..4a0f56a87d9bf56610e944fd2c21e1c33039446c 100644 (file)
@@ -1065,8 +1065,8 @@ private:
 template <>
 class errorator<> {
 public:
-  template <class ValueT>
-  using future = ::seastar::future<ValueT>;
+  template <class ValueT=void>
+  using future = ::seastar::futurize_t<ValueT>;
 
   template <class T>
   using futurize = ::seastar::futurize<T>;