nic-6443 commented on code in PR #12338:
URL: https://github.com/apache/apisix/pull/12338#discussion_r2158198647


##########
apisix/utils/batch-processor-manager.lua:
##########
@@ -85,7 +86,20 @@ do
 end
 
 
-function _M:add_entry(conf, entry)
+local function total_processed_entries(self)
+    local processed_entries = 0
+    for _, log_buffer in pairs(self.buffers) do

Review Comment:
   According to my understanding, the number of `self.buffers` is proportional 
to the number of plugin configurations. For example, if kafka-logger is 
configured on 10 routes, there will be 10 `buffers`, so the quantity is 
controllable. 
   @Revolyssup Am I right?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to