`seastar::future<T>::available()` already verifies whether
a future instance stores exception inside. It's unnecessary
to ensure that with further call to `failed()`.
This tiny clean-up removes the duplicative check in
`with_blocking_future()`.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
template <typename... T>
seastar::future<T...> with_blocking_future(blocking_future<T...> &&f) {
- if (f.fut.available() || f.fut.failed()) {
+ if (f.fut.available()) {
return std::move(f.fut);
}
assert(f.blocker);