Browse Source

MINOR: Remove unused field in `ListenerConnectionQuota`

Reviewers: Jason Gustafson <jason@confluent.io>
pull/6695/head
Lee Dongjin 6 years ago committed by Jason Gustafson
parent
commit
4eadaff6b2
  1. 2
      core/src/main/scala/kafka/network/SocketServer.scala

2
core/src/main/scala/kafka/network/SocketServer.scala

@ -1228,7 +1228,7 @@ class ConnectionQuotas(config: KafkaConfig, time: Time) extends Logging {
class ListenerConnectionQuota(lock: Object, listener: ListenerName) extends ListenerReconfigurable { class ListenerConnectionQuota(lock: Object, listener: ListenerName) extends ListenerReconfigurable {
@volatile private var _maxConnections = Int.MaxValue @volatile private var _maxConnections = Int.MaxValue
private val listenerPropName = s"${listener.configPrefix}${KafkaConfig.MaxConnectionsProp}"
def maxConnections: Int = _maxConnections def maxConnections: Int = _maxConnections
override def listenerName(): ListenerName = listener override def listenerName(): ListenerName = listener

Loading…
Cancel
Save