You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/04/12 12:27:46 UTC

[GitHub] [skywalking] kezhenxu94 commented on a diff in pull request #8857: simplify kafka configuration in cluster mode

kezhenxu94 commented on code in PR #8857:
URL: https://github.com/apache/skywalking/pull/8857#discussion_r848376418


##########
oap-server/server-fetcher-plugin/kafka-fetcher-plugin/src/main/java/org/apache/skywalking/oap/server/analyzer/agent/kafka/provider/handler/MeterServiceHandler.java:
##########
@@ -71,11 +71,11 @@ public MeterServiceHandler(ModuleManager manager, KafkaFetcherConfig config) {
 
     @Override
     public void handle(final ConsumerRecord<String, Bytes> record) {
-        try (HistogramMetrics.Timer timer = histogramBatch.createTimer()) {
+        try (HistogramMetrics.Timer ignored = histogramBatch.createTimer()) {

Review Comment:
   > `timer` to `ignored`? What is the new naming style?
   
   IDE raises warnings for unused variables, unless they're `ignored`, `unused`



-- 
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: notifications-unsubscribe@skywalking.apache.org

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