Skip to content

Commit 3ca23f7

Browse files
boramalperrueian
authored andcommitted
Remove unused code in README example (#31)
Signed-off-by: Bora M. Alper <[email protected]> Signed-off-by: Rueian <[email protected]>
1 parent 984cdda commit 3ca23f7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

rueidislimiter/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ import (
3737
)
3838

3939
func main() {
40-
client, err := rueidis.NewClient(rueidis.ClientOption{
41-
InitAddress: []string{"localhost:6379"},
42-
})
43-
if err != nil {
44-
panic(err)
45-
}
46-
4740
// Initialize a new rate limiter with a limit of 5 requests per minute
4841
limiter, err := rueidislimiter.NewRateLimiter(rueidislimiter.RateLimiterOption{
4942
ClientOption: rueidis.ClientOption{InitAddress: []string{"localhost:6379"}},

0 commit comments

Comments
 (0)