Skip to content

If add some check in New function? #74

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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