From 776a05250519a38e1aee555074dc3c59bef6bdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Fri, 9 Aug 2024 14:11:08 +0200 Subject: [PATCH] ok I give up... --- worker/src/Worker.cpp | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/worker/src/Worker.cpp b/worker/src/Worker.cpp index 01c4d90429..e8eaed06d7 100644 --- a/worker/src/Worker.cpp +++ b/worker/src/Worker.cpp @@ -148,17 +148,26 @@ flatbuffers::Offset Worker::FillBuffer( // Add channelMessageHandlers. auto channelMessageHandlers = this->shared->channelMessageRegistrator->FillBuffer(builder); - return FBS::Worker::CreateDumpResponseDirect( - builder, - Logger::Pid, - &webRtcServerIds, - &routerIds, - channelMessageHandlers #ifdef MS_LIBURING_SUPPORTED - , - DepLibUring::IsEnabled() ? DepLibUring::FillBuffer(builder) : nullptr + if (DepLibUring::IsEnabled()) + { + return FBS::Worker::CreateDumpResponseDirect( + builder, + Logger::Pid, + &webRtcServerIds, + &routerIds, + channelMessageHandlers, + DepLibUring::FillBuffer(builder)); + } + else + { + return FBS::Worker::CreateDumpResponseDirect( + builder, Logger::Pid, &webRtcServerIds, &routerIds, channelMessageHandlers, ); + } +#else + return FBS::Worker::CreateDumpResponseDirect( + builder, Logger::Pid, &webRtcServerIds, &routerIds, channelMessageHandlers, ); #endif - ); } flatbuffers::Offset Worker::FillBufferResourceUsage(