rename monitor_name kwarg to monitor
Matches the monitor_utils signature change.
This commit is contained in:
1 parent
e89f5d8682
commit
f5b3ce997f
1 file changed
+2
-2
@@ -17,7 +17,7 @@ from monitor_utils.runner import (
|
|||||||
from monitor_utils.sessions import send_request
|
from monitor_utils.sessions import send_request
|
||||||
from motor.motor_asyncio import AsyncIOMotorCollection
|
from motor.motor_asyncio import AsyncIOMotorCollection
|
||||||
|
|
||||||
setup_monitor_logging(monitor_name="samsung_shop")
|
setup_monitor_logging(monitor="samsung_shop")
|
||||||
DEVELOPMENT_MODE = DevelopmentMode.PRODUCTION
|
DEVELOPMENT_MODE = DevelopmentMode.PRODUCTION
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ CATEGORY_SEMAPHORE = asyncio.Semaphore(CATEGORY_CONCURRENCY)
|
|||||||
async def main():
|
async def main():
|
||||||
"""Run the samsung shop monitor loop over all category ids on bounded cycles."""
|
"""Run the samsung shop monitor loop over all category ids on bounded cycles."""
|
||||||
category_paths, collection, proxies = await init_monitor(
|
category_paths, collection, proxies = await init_monitor(
|
||||||
monitor_name="samsung_shop", development_mode=DEVELOPMENT_MODE
|
monitor="samsung_shop", development_mode=DEVELOPMENT_MODE
|
||||||
)
|
)
|
||||||
while True:
|
while True:
|
||||||
await run_bounded_cycle(
|
await run_bounded_cycle(
|
||||||
|
|||||||
Reference in new issue
Block a user