chore: replace redis.NewRedis with redis.New (#1103)

This commit is contained in:
Kevin Wan
2021-09-29 23:01:10 +08:00
committed by GitHub
parent cd21c9fa74
commit e43357164c
7 changed files with 12 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ func TestTokenLimit_Rescue(t *testing.T) {
rate = 5
burst = 10
)
l := NewTokenLimiter(rate, burst, redis.NewRedis(s.Addr(), redis.NodeType), "tokenlimit")
l := NewTokenLimiter(rate, burst, redis.New(s.Addr()), "tokenlimit")
s.Close()
var allowed int