AniLink - v3.0.0
    Preparing search index...

    Function recordPaceDeadline

    • Records the rate-limit reset deadline for the caller's owner and host so the next dispatch through awaitPaceDeadline waits for it. A deadline further in the future replaces an earlier one; a deadline at or before now is cleared so a healthy window does not stall subsequent requests, unless a later active deadline is already recorded for the host. A stale report never clears a still-pending deadline. Recording an existing host refreshes its recency in the per-owner map, and once an owner tracks more hosts than the LRU cap allows, the least-recently-used host's deadline is evicted so dynamic-host callers cannot grow the map without bound.

      Parameters

      • owner: object

        The caller's stable transport-settings object.

      • host: string

        The upstream host the deadline applies to.

      • deadlineMs: number

        The epoch millisecond at which the window resets.

      Returns void