1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

chore: gofmt all code

This commit is contained in:
Vladimir Mihailenco
2021-09-08 16:00:52 +03:00
parent 11c4d6f556
commit 9b6ee9c3cc
34 changed files with 72 additions and 55 deletions

View File

@ -9,10 +9,10 @@ import (
"sync"
"time"
"github.com/go-redis/redis/v8"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/go-redis/redis/v8"
)
var _ = Describe("Redis Ring", func() {
@ -190,8 +190,8 @@ var _ = Describe("Redis Ring", func() {
Describe("Process hook", func() {
BeforeEach(func() {
//the health check leads to data race for variable "stack []string".
//here, the health check time is set to 72 hours to avoid health check
// the health check leads to data race for variable "stack []string".
// here, the health check time is set to 72 hours to avoid health check
opt := redisRingOptions()
opt.HeartbeatFrequency = 72 * time.Hour
ring = redis.NewRing(opt)