(ctx context.Context, slot int)
| 2451 | } |
| 2452 | |
| 2453 | func (c *ClusterClient) slotMasterNode(ctx context.Context, slot int) (*clusterNode, error) { |
| 2454 | state, err := c.state.Get(ctx) |
| 2455 | if err != nil { |
| 2456 | return nil, err |
| 2457 | } |
| 2458 | return state.slotMasterNode(slot) |
| 2459 | } |
| 2460 | |
| 2461 | // SlaveForKey gets a client for a replica node to run any command on it. |
| 2462 | // This is especially useful if we want to run a particular lua script which has |
no test coverage detected