1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

chore: remove unused param (#3384)

Signed-off-by: fukua95 <fukua95@gmail.com>
This commit is contained in:
fukua95
2025-05-20 19:11:53 +08:00
committed by GitHub
parent c149644da7
commit 03c2c0b088
2 changed files with 4 additions and 4 deletions

View File

@ -702,7 +702,7 @@ func (c *Ring) cmdsInfo(ctx context.Context) (map[string]*CommandInfo, error) {
return nil, firstErr
}
func (c *Ring) cmdShard(ctx context.Context, cmd Cmder) (*ringShard, error) {
func (c *Ring) cmdShard(cmd Cmder) (*ringShard, error) {
pos := cmdFirstKeyPos(cmd)
if pos == 0 {
return c.sharding.Random()
@ -720,7 +720,7 @@ func (c *Ring) process(ctx context.Context, cmd Cmder) error {
}
}
shard, err := c.cmdShard(ctx, cmd)
shard, err := c.cmdShard(cmd)
if err != nil {
return err
}