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

@@ -73,7 +73,7 @@ func TestCacheNode_InvalidCache(t *testing.T) {
defer s.Close()
cn := cacheNode{
rds: redis.NewRedis(s.Addr(), redis.NodeType),
rds: redis.New(s.Addr()),
r: rand.New(rand.NewSource(time.Now().UnixNano())),
lock: new(sync.Mutex),
unstableExpiry: mathx.NewUnstable(expiryDeviation),