From 574218b5788d47ef16ad8eb15a6704314a3e42d5 Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Fri, 15 Oct 2021 17:55:44 +0100 Subject: [PATCH] fix: DoContext call to DoWithTimeout (#576) Fix DoContext call to DoWithTimeout passing args as variadic. Fixes #575 --- redis/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/conn.go b/redis/conn.go index 526a5649..a30100d7 100644 --- a/redis/conn.go +++ b/redis/conn.go @@ -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():