Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
filinvadim authored Sep 2, 2024
1 parent 42b18e6 commit 68d7f62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ go get github.com/filinvadim/ratelimiter
```

### Using the library:
There are two types of rate-limiters used.
There are two types of rate limiters used.

### Examples:
The generic rate-limiter:
The generic rate limiter:

```go
l := NewLimiter(context.TODO(), 8, time.Second * 5)
Expand All @@ -26,7 +26,7 @@ The generic rate-limiter:
// some API request with weight (if requests are differentiated)
})
```
Keyed rate limiter
```go
l := NewKeyLimiter(context.TODO())
defer l.DeleteKeys()
Expand Down

0 comments on commit 68d7f62

Please sign in to comment.