mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Fix FailoverClient to close connection to Sentinel. Fixes races build.
This commit is contained in:
@ -98,9 +98,10 @@ func TestGinkgoSuite(t *testing.T) {
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
func eventually(fn func() error, timeout time.Duration) (err error) {
|
||||
func eventually(fn func() error, timeout time.Duration) error {
|
||||
done := make(chan struct{})
|
||||
var exit int32
|
||||
var err error
|
||||
go func() {
|
||||
for atomic.LoadInt32(&exit) == 0 {
|
||||
err = fn()
|
||||
|
Reference in New Issue
Block a user