fix: correct import

This commit is contained in:
世界观察日志
2025-06-09 17:04:00 +08:00
parent c3932bc852
commit 06961f6858
2 changed files with 9 additions and 6 deletions

13
main.py
View File

@@ -1,16 +1,19 @@
import asyncio
import logging
from creart import add_creator
from src.api import APICreator
from src.cmd import InteractiveShell
from src.config import ConfigCreator
from src.grpc.manager import WMCreator
loop = asyncio.new_event_loop()
loop.set_debug(True)
logging.getLogger("asyncio").setLevel(logging.WARNING)
from src.logger import LoggerCreator
add_creator(LoggerCreator)
from src.config import ConfigCreator
add_creator(ConfigCreator)
from src.api import APICreator
add_creator(APICreator)
from src.grpc.manager import WMCreator
add_creator(WMCreator)
from src.measurer import MeasurerCreator
add_creator(MeasurerCreator)

View File

@@ -7,7 +7,7 @@ from typing import Type
import httpx
import regex
from creart import AbstractCreator, CreateTargetInfo, exists_module, it
from tenacity import retry, retry_if_exception_type, wait_random_exponential, stop_after_attempt
from tenacity import retry, retry_if_exception_type, wait_random_exponential, stop_after_attempt, before_sleep_log
from src.config import Config
from src.logger import GlobalLogger