mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Fix WithContext and add tests
This commit is contained in:
@ -98,7 +98,7 @@ func (c *Pipeline) discard() error {
|
||||
// Exec always returns list of commands and error of the first failed
|
||||
// command if any.
|
||||
func (c *Pipeline) Exec() ([]Cmder, error) {
|
||||
return c.ExecContext(nil)
|
||||
return c.ExecContext(context.Background())
|
||||
}
|
||||
|
||||
func (c *Pipeline) ExecContext(ctx context.Context) ([]Cmder, error) {
|
||||
|
Reference in New Issue
Block a user