Skip to content

If add some check in New function? #74

@johnsGuo

Description

@johnsGuo

when I use ticker := ratelimit.New(0) the code will throw exception, but when I use negative I works ok but loss my mind.
ticker := ratelimit.New(-1) Pre-Request wait 10s. if need add some check in when new a litter?

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