Skip to content

Commit

Permalink
fix: DoContext call to DoWithTimeout (#576)
Browse files Browse the repository at this point in the history
Fix DoContext call to DoWithTimeout passing args as variadic.

Fixes #575
  • Loading branch information
stevenh authored Oct 15, 2021
1 parent 56d6448 commit 574218b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ func (c *conn) DoContext(ctx context.Context, cmd string, args ...interface{}) (
go func() {
defer close(endch)

r, e = c.DoWithTimeout(realTimeout, cmd, args)
r, e = c.DoWithTimeout(realTimeout, cmd, args...)
}()
select {
case <-ctx.Done():
Expand Down

0 comments on commit 574218b

Please # to comment.