diff --git a/core/future.hh b/core/future.hh index a013d8eb9f..c165c1ce85 100644 --- a/core/future.hh +++ b/core/future.hh @@ -341,7 +341,7 @@ public: if (state()->available()) { state()->forward_to(pr); } else { - _promise->schedule([pr = std::move(pr)] (auto& state) mutable { + _promise->schedule([pr = std::move(pr)] (future_state& state) mutable { state.forward_to(pr); }); _promise->_future = nullptr;