diff --git a/src/meta/processors/admin/AdminClient.cpp b/src/meta/processors/admin/AdminClient.cpp index 76a9f1ff6ef..5c0851981d6 100644 --- a/src/meta/processors/admin/AdminClient.cpp +++ b/src/meta/processors/admin/AdminClient.cpp @@ -409,6 +409,10 @@ void AdminClient::getResponseFromLeader(std::vector hosts, int32_t retry, folly::Promise pro, int32_t retryLimit) { + static_assert( + folly::isSemiFuture< + typename std::result_of, Request)>::type>::value); + auto* evb = ioThreadPool_->getEventBase(); CHECK_GE(index, 0); CHECK_LT(index, hosts.size());