Skip to content

Commit

Permalink
style: 执行器服务发现代码调整
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaolulu committed Sep 19, 2024
1 parent 14aa204 commit c60a530
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 23 deletions.
46 changes: 25 additions & 21 deletions unit-backend/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion unit-backend/api/services/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
@property
def unit_executor_service_addr(self):
host, port = servers_consul.fetch_user_service_addresses('unit_executor.service.consul')
logger.info(f"获取到的地址{host}:{port}")
logger.info(f"Service unit_executor 服务发现{host}:{port}")
return f"{host}:{port}"

async def __aenter__(self):
Expand Down
Loading

0 comments on commit c60a530

Please sign in to comment.