Updating server dependancies. (#7246)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2c895ee66e
Коммит
96eab12027
7
vendor/github.com/go-redis/redis/export_test.go
сгенерированный
поставляемый
7
vendor/github.com/go-redis/redis/export_test.go
сгенерированный
поставляемый
@@ -28,8 +28,9 @@ func (c *ClusterClient) SlotAddrs(slot int) []string {
|
||||
}
|
||||
|
||||
// SwapSlot swaps a slot's master/slave address for testing MOVED redirects.
|
||||
func (c *ClusterClient) SwapSlotNodes(slot int) []string {
|
||||
func (c *ClusterClient) SwapSlotNodes(slot int) {
|
||||
nodes := c.state().slots[slot]
|
||||
nodes[0], nodes[1] = nodes[1], nodes[0]
|
||||
return c.SlotAddrs(slot)
|
||||
if len(nodes) == 2 {
|
||||
nodes[0], nodes[1] = nodes[1], nodes[0]
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user