refactor: use AMQConfiguration for Consul settings in ID generators

Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat>
This commit is contained in:
Stanislav Hejny
2025-07-11 22:22:14 +01:00
parent d0b580b136
commit 03983306b1
2 changed files with 4 additions and 0 deletions
@@ -104,6 +104,10 @@ from typing import Optional
import consul
from amqp.config.amq_configuration import AMQConfiguration
from amqp.config.amq_configuration import AMQConfiguration
# Configuration from environment variables with defaults
CONSUL_HOST = os.environ.get('CONSUL_HOST', 'localhost')
CONSUL_PORT = int(os.environ.get('CONSUL_PORT', 8500))