Skip to content

[Docs]: typo tokens max in token-bucket.md comment contradicts code #1817

@zeronumbers

Description

@zeronumbers

https://github.com/lucia-auth/lucia/blob/main/pages/rate-limit/token-bucket.md

values used in example token buckets (5) are different from the ones mentioned in comment (10).

// Bucket that has 10 tokens max and refills at a rate of 30 seconds/token

const ratelimit = new TokenBucketRateLimit<string>(5, 30);

// Bucket that has 10 tokens max and refills at a rate of 30 seconds/token

const ratelimit = new TokenBucketRateLimit<string>("ip", 5, 30);

when it happened:
8aa5adf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions