Skip to content

Commit ef08fb3

Browse files
Juanlu Herrerometa-codesync[bot]
authored andcommitted
Migrate zero_copy_server.cpp to use IoUringOptions
Summary: Update thrift/test/integration/cpp2/zero_copy_server.cpp to use the new IoUringOptions type directly instead of IoUringBackend::Options. Reviewed By: spikeh Differential Revision: D92400205 fbshipit-source-id: 67f5dfa698f1dc63040a3d5d863b72d9c46d0d32
1 parent 085cb59 commit ef08fb3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

thrift/test/integration/cpp2/zero_copy_server.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121

2222
#include <folly/init/Init.h>
2323

24-
#include <folly/experimental/io/IoUringBackend.h>
2524
#include <folly/io/async/AsyncSignalHandler.h>
25+
#include <folly/io/async/IoUringOptions.h>
2626

2727
#include <folly/experimental/io/MuxIOThreadPoolExecutor.h>
2828

2929
#include <common/services/cpp/ServiceFramework.h>
30+
#include <folly/io/async/IoUringBackend.h>
3031
#include <thrift/test/integration/cpp2/gen-cpp2/ZeroCopyService.h>
3132

3233
DEFINE_int32(port, 7878, "Port for the thrift server");
@@ -71,8 +72,8 @@ DEFINE_int32(mux_io_tp_num_wakeup_us, 200, "");
7172
using namespace thrift::zerocopy::cpp2;
7273

7374
namespace {
74-
folly::IoUringBackend::Options getIoUringOptions() {
75-
folly::IoUringBackend::Options options;
75+
folly::IoUringOptions getIoUringOptions() {
76+
folly::IoUringOptions options;
7677
options.setRegisterRingFd(FLAGS_use_iouring_event_eventfd);
7778

7879
if (FLAGS_io_prov_buffs_size > 0 && FLAGS_io_prov_buffs > 0) {

0 commit comments

Comments
 (0)