Skip to content

Commit

Permalink
Made some recommended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Jan 21, 2025
1 parent d88de4d commit 0ad64bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libMobileAgent/src/Hex/src/HexPersistenceManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ void NewRelic::Hex::HexPersistenceManager::retrieveAndPublishReports() {
auto context = std::make_shared<HexContext>();
flatbuffers::Offset<HexAgentData> agentDataOffset = HexAgentData::Pack(*context->getBuilder(), agentDataObj.get(), nullptr);

auto agentDataVector = context->getBuilder()->CreateVector(&agentDataOffset, 1);
Offset<Vector<Offset<HexAgentData>>> agentDataVector = context->getBuilder()->CreateVector(&agentDataOffset, 1);
auto bundle = fbs::CreateHexAgentDataBundle(*context->getBuilder(), agentDataVector);
FinishHexAgentDataBundleBuffer(*context->getBuilder(), bundle);

// Publish the context for this agent data
_publisher->publish(context);
if (context) {
_publisher->publish(context);
}
}
});

Expand Down

0 comments on commit 0ad64bc

Please sign in to comment.