dao-jun commented on code in PR #24952:
URL: https://github.com/apache/pulsar/pull/24952#discussion_r2500938001


##########
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/FunctionsMetricsResource.java:
##########
@@ -45,7 +45,7 @@ public class FunctionsMetricsResource extends 
FunctionApiResource {
     public Response getMetrics() throws IOException {
 
         WorkerService workerService = get();
-        ByteBuf buf = ByteBufAllocator.DEFAULT.heapBuffer();
+        ByteBuf buf = PulsarByteBufAllocator.DEFAULT.heapBuffer();

Review Comment:
   Yes, It is solely for the purpose of unifying the memory allocation interface



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