1
0
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:
Vladimir Mihailenco
2020-06-29 17:26:11 +03:00
parent 5b4d00c217
commit 0ffefcde98
7 changed files with 64 additions and 23 deletions

View File

@ -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"