a
This commit is contained in:
parent
0b11b72eb8
commit
61af631e46
|
|
@ -165,16 +165,10 @@ def _get_config_value(key, default=None):
|
|||
return default
|
||||
|
||||
def _get_trading_config():
|
||||
<<<<<<< Current (Your changes)
|
||||
"""获取交易配置(支持动态重载)"""
|
||||
if _config_manager:
|
||||
_config_manager.reload() # 每次获取配置时重新加载
|
||||
=======
|
||||
"""获取交易配置(支持动态重载,优先从Redis读取最新值)"""
|
||||
if _config_manager:
|
||||
# 从Redis重新加载配置(轻量级,只从Redis读取,不查数据库)
|
||||
_config_manager.reload_from_redis()
|
||||
>>>>>>> Incoming (Background Agent changes)
|
||||
return _config_manager.get_trading_config()
|
||||
# 回退到默认配置
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user