Skip to content

Commit

Permalink
ok I give up...
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 9, 2024
1 parent d6178ab commit 776a052
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions worker/src/Worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,26 @@ flatbuffers::Offset<FBS::Worker::DumpResponse> 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<FBS::Worker::ResourceUsageResponse> Worker::FillBufferResourceUsage(
Expand Down

0 comments on commit 776a052

Please sign in to comment.