Skip to content

Commit 03c2c0b

Browse files
authored
chore: remove unused param (#3384)
Signed-off-by: fukua95 <fukua95@gmail.com>
1 parent c149644 commit 03c2c0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

osscluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ func (c *ClusterClient) processTxPipeline(ctx context.Context, cmds []Cmder) err
14981498
return err
14991499
}
15001500

1501-
cmdsMap := c.mapCmdsBySlot(ctx, cmds)
1501+
cmdsMap := c.mapCmdsBySlot(cmds)
15021502
for slot, cmds := range cmdsMap {
15031503
node, err := state.slotMasterNode(slot)
15041504
if err != nil {
@@ -1537,7 +1537,7 @@ func (c *ClusterClient) processTxPipeline(ctx context.Context, cmds []Cmder) err
15371537
return cmdsFirstErr(cmds)
15381538
}
15391539

1540-
func (c *ClusterClient) mapCmdsBySlot(ctx context.Context, cmds []Cmder) map[int][]Cmder {
1540+
func (c *ClusterClient) mapCmdsBySlot(cmds []Cmder) map[int][]Cmder {
15411541
cmdsMap := make(map[int][]Cmder)
15421542
for _, cmd := range cmds {
15431543
slot := c.cmdSlot(cmd)

ring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func (c *Ring) cmdsInfo(ctx context.Context) (map[string]*CommandInfo, error) {
702702
return nil, firstErr
703703
}
704704

705-
func (c *Ring) cmdShard(ctx context.Context, cmd Cmder) (*ringShard, error) {
705+
func (c *Ring) cmdShard(cmd Cmder) (*ringShard, error) {
706706
pos := cmdFirstKeyPos(cmd)
707707
if pos == 0 {
708708
return c.sharding.Random()
@@ -720,7 +720,7 @@ func (c *Ring) process(ctx context.Context, cmd Cmder) error {
720720
}
721721
}
722722

723-
shard, err := c.cmdShard(ctx, cmd)
723+
shard, err := c.cmdShard(cmd)
724724
if err != nil {
725725
return err
726726
}

0 commit comments

Comments
 (0)