added init monitor for shared logic
This commit is contained in:
1 parent
1f36a62d34
commit
4ac8692539
1 file changed
+2
-2
@@ -34,13 +34,13 @@ LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def init_monitor(
|
||||
monitor_name: str, development_mode: DevelopmentMode
|
||||
monitor_name: str, development_mode: DevelopmentMode, proxy_path: str
|
||||
) -> tuple[list[str], AsyncIOMotorCollection, AioProxies]:
|
||||
set_logger_levels()
|
||||
category_names, _, collection = setup_config(
|
||||
monitor_name=monitor_name, development_mode=development_mode
|
||||
)
|
||||
proxies = AioProxies.from_file("proxies.txt")
|
||||
proxies = AioProxies.from_file(path=proxy_path)
|
||||
return category_names, collection, proxies
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user