RED-4653: Added explicit conversion of the heartbeat config value to an int before passing it to pika
This commit is contained in:
parent
8f2bc4e028
commit
4bf1a02345
@ -21,7 +21,7 @@ def get_connection_params(config: Config) -> pika.ConnectionParameters:
|
||||
"host": config.rabbitmq_host,
|
||||
"port": config.rabbitmq_port,
|
||||
"credentials": credentials,
|
||||
"heartbeat": config.rabbitmq_heartbeat,
|
||||
"heartbeat": int(config.rabbitmq_heartbeat),
|
||||
}
|
||||
|
||||
return pika.ConnectionParameters(**pika_connection_params)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user