mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 21:55:50 +00:00
treewide: use coroutine::maybe_yield() instead of co_await make_ready_future()
The dedicated API shows the intent, and may be a tiny bit faster. Closes #9382
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <seastar/testing/test_case.hh>
|
||||
#include <seastar/core/timed_out_error.hh>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
#include <seastar/coroutine/maybe_yield.hh>
|
||||
#include <seastar/core/gate.hh>
|
||||
#include <seastar/core/queue.hh>
|
||||
#include <seastar/core/future-util.hh>
|
||||
@@ -146,7 +147,7 @@ public:
|
||||
// In any case we simply drop the output.
|
||||
}
|
||||
|
||||
co_await make_ready_future<>(); // maybe yield
|
||||
co_await coroutine::maybe_yield();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user