adamdebreceni commented on code in PR #1693:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1693#discussion_r1386727993


##########
extensions/http-curl/processors/InvokeHTTP.cpp:
##########
@@ -202,15 +186,15 @@ bool InvokeHTTP::appendHeaders(const core::FlowFile& 
flow_file, /*std::invocable
   return true;
 }
 
-void InvokeHTTP::onTrigger(const std::shared_ptr<core::ProcessContext>& 
context, const std::shared_ptr<core::ProcessSession>& session) {
-  gsl_Expects(session && context && client_queue_);
+void InvokeHTTP::onTrigger(core::ProcessContext& context, 
core::ProcessSession& session) {
+  gsl_Expects(client_queue_);
 
-  auto flow_file = session->get();
+  auto flow_file = session.get();
 
   if (flow_file == nullptr) {
     if (!shouldEmitFlowFile()) {
-      logger_->log_debug("InvokeHTTP -- create flow file with {}", 
magic_enum::enum_name(method_));
-      flow_file = session->create();
+      logger_->log_debug("InvokeHTTP -- create flow file with  {}", 
std::string(magic_enum::enum_name(method_)));

Review Comment:
   why do we need to construct and `std::string`? `enum_name` seems to be used 
without that in other logs



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to