Skip to content

Commit

Permalink
Remove unused code in README example (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Bora M. Alper <[email protected]>
  • Loading branch information
boramalper authored Feb 2, 2025
1 parent 3db5c51 commit 50d5c83
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions valkeylimiter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ import (
)

func main() {
client, err := valkey.NewClient(valkey.ClientOption{
InitAddress: []string{"localhost:6379"},
})
if err != nil {
panic(err)
}

// Initialize a new rate limiter with a limit of 5 requests per minute
limiter, err := valkeylimiter.NewRateLimiter(valkeylimiter.RateLimiterOption{
ClientOption: valkey.ClientOption{InitAddress: []string{"localhost:6379"}},
Expand Down

0 comments on commit 50d5c83

Please sign in to comment.