szaszm commented on a change in pull request #743: Minificpp 1169 - Simplify C2
metrics collection and reporting
URL: https://github.com/apache/nifi-minifi-cpp/pull/743#discussion_r392275028
##########
File path: libminifi/src/FlowController.cpp
##########
@@ -601,6 +593,15 @@ void FlowController::initializeC2() {
}
loadC2ResponseConfiguration();
+
+ if (!c2_initialized_) {
+ c2_agent_ = std::unique_ptr<c2::C2Agent>(new
c2::C2Agent(std::dynamic_pointer_cast<FlowController>(shared_from_this()),
+
std::dynamic_pointer_cast<FlowController>(shared_from_this()),
+ configuration_,
+ thread_pool_));
Review comment:
I've added a `make_unique` implementation in `GeneralUtils.h`. Use it if
you're interested.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services