fix: correct consul_initial_retry_delay configuration logic
Co-authored-by: aider (openrouter/openai/o3-mini-high) <aider@aider.chat>
This commit is contained in:
@@ -82,10 +82,17 @@ class AMQAdapter:
|
|||||||
self.PREFIX + "consul-max-retries",
|
self.PREFIX + "consul-max-retries",
|
||||||
fallback=5
|
fallback=5
|
||||||
)
|
)
|
||||||
self.consul_max_retries = config.getfloat(
|
self.consul_initial_retry_delay = float(os.getenv(
|
||||||
"CleverMicro-AMQ", self.PREFIX + "consul-initial-retry-delay",
|
"CONSUL_INITIAL_RETRY_DELAY",
|
||||||
fallback=float(os.getenv("CONSUL_INITIAL_RETRY_DELAY"))
|
config.get(
|
||||||
if os.getenv("CONSUL_INITIAL_RETRY_DELAY") is not None else 0.2,
|
"CleverMicro-AMQ",
|
||||||
|
self.PREFIX + "consul-initial-retry-delay",
|
||||||
|
fallback="0.2"
|
||||||
|
)
|
||||||
|
)) if os.getenv("CONSUL_INITIAL_RETRY_DELAY") is not None else config.getfloat(
|
||||||
|
"CleverMicro-AMQ",
|
||||||
|
self.PREFIX + "consul-initial-retry-delay",
|
||||||
|
fallback=0.2
|
||||||
)
|
)
|
||||||
|
|
||||||
def adapter_prefix(self) -> str:
|
def adapter_prefix(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user