Skip to content

Replace external osrs RateLimiter with internal bot_detector.rate_limiter component in runemetrics_scraper #122

@extreme4all-ai

Description

@extreme4all-ai

Summary

bases/bot_detector/runemetrics_scraper/core.py imports from osrs.utils import RateLimiter (external osrs package) instead of from bot_detector.rate_limiter import RateLimiter (internal component).

This bypasses the Polylith component architecture and creates an undeclared dependency not tracked in pyproject.toml bricks.

Proposed Change

Replace from osrs.utils import RateLimiter with from bot_detector.rate_limiter import RateLimiter in bases/bot_detector/runemetrics_scraper/core.py.

Ensure the rate_limiter component is listed in the runemetrics_scraper project bricks if not already.

Context

Migration artifact. The internal rate_limiter component exists for this purpose and is already used by hiscore_scraper and discord_bot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions