kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject [kafka] branch trunk updated: MINOR: Remove unused local variable in SocketServer (#4669)
Date Fri, 09 Mar 2018 15:45:00 GMT
This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new db619c6  MINOR: Remove unused local variable in SocketServer (#4669)
db619c6 is described below

commit db619c6da2b1f02a4ca321d7a3b91ef47c09a46c
Author: Jimin Hsieh <jimin.hsieh.engineer@gmail.com>
AuthorDate: Fri Mar 9 23:44:57 2018 +0800

    MINOR: Remove unused local variable in SocketServer (#4669)
    
    Reviewers: Ismael Juma <ismael@juma.me.uk>
---
 core/src/main/scala/kafka/network/SocketServer.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/scala/kafka/network/SocketServer.scala b/core/src/main/scala/kafka/network/SocketServer.scala
index d37b523..71491f2 100644
--- a/core/src/main/scala/kafka/network/SocketServer.scala
+++ b/core/src/main/scala/kafka/network/SocketServer.scala
@@ -124,7 +124,7 @@ class SocketServer(val config: KafkaConfig, val metrics: Metrics, val
time: Time
       val securityProtocol = endpoint.securityProtocol
       val listenerProcessors = new ArrayBuffer[Processor]()
 
-      for (i <- 0 until newProcessorsPerListener) {
+      for (_ <- 0 until newProcessorsPerListener) {
         val processor = newProcessor(nextProcessorId, connectionQuotas, listenerName, securityProtocol,
memoryPool)
         listenerProcessors += processor
         requestChannel.addProcessor(processor)

-- 
To stop receiving notification emails like this one, please contact
ijuma@apache.org.

Mime
View raw message