Merge "Fix type of the kafka_consumer_timeout option"
This commit is contained in:
commit
07486845eb
oslo_messaging/_drivers
@ -124,7 +124,7 @@ class Connection(object):
|
|||||||
self.producer = None
|
self.producer = None
|
||||||
self.producer_lock = threading.Lock()
|
self.producer_lock = threading.Lock()
|
||||||
self.consumer = None
|
self.consumer = None
|
||||||
self.consumer_timeout = float(driver_conf.kafka_consumer_timeout)
|
self.consumer_timeout = driver_conf.kafka_consumer_timeout
|
||||||
self.max_fetch_bytes = driver_conf.kafka_max_fetch_bytes
|
self.max_fetch_bytes = driver_conf.kafka_max_fetch_bytes
|
||||||
self.group_id = driver_conf.consumer_group
|
self.group_id = driver_conf.consumer_group
|
||||||
self.url = url
|
self.url = url
|
||||||
|
@ -27,8 +27,8 @@ KAFKA_OPTS = [
|
|||||||
cfg.IntOpt('kafka_max_fetch_bytes', default=1024 * 1024,
|
cfg.IntOpt('kafka_max_fetch_bytes', default=1024 * 1024,
|
||||||
help='Max fetch bytes of Kafka consumer'),
|
help='Max fetch bytes of Kafka consumer'),
|
||||||
|
|
||||||
cfg.IntOpt('kafka_consumer_timeout', default=1.0,
|
cfg.FloatOpt('kafka_consumer_timeout', default=1.0,
|
||||||
help='Default timeout(s) for Kafka consumers'),
|
help='Default timeout(s) for Kafka consumers'),
|
||||||
|
|
||||||
cfg.IntOpt('pool_size', default=10,
|
cfg.IntOpt('pool_size', default=10,
|
||||||
help='Pool Size for Kafka Consumers'),
|
help='Pool Size for Kafka Consumers'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user