(cmd Cmder, pos int, prefferedRandomSlot int)
| 2375 | } |
| 2376 | |
| 2377 | func cmdSlot(cmd Cmder, pos int, prefferedRandomSlot int) int { |
| 2378 | if pos == 0 { |
| 2379 | if prefferedRandomSlot != -1 { |
| 2380 | return prefferedRandomSlot |
| 2381 | } |
| 2382 | // Return -1 for keyless commands to signal that ShardPicker should be used |
| 2383 | return -1 |
| 2384 | } |
| 2385 | firstKey := cmd.stringArg(pos) |
| 2386 | return hashtag.Slot(firstKey) |
| 2387 | } |
| 2388 | |
| 2389 | func (c *ClusterClient) cmdNode( |
| 2390 | ctx context.Context, |
no test coverage detected