mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Use random node to load cluster slots
This commit is contained in:
2
ring.go
2
ring.go
@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net"
|
||||
"strconv"
|
||||
"sync"
|
||||
@ -13,6 +12,7 @@ import (
|
||||
|
||||
"github.com/cespare/xxhash"
|
||||
"github.com/dgryski/go-rendezvous"
|
||||
"golang.org/x/exp/rand"
|
||||
|
||||
"github.com/go-redis/redis/v8/internal"
|
||||
"github.com/go-redis/redis/v8/internal/hashtag"
|
||||
|
Reference in New Issue
Block a user