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

refactor: remove unused context attributes (#2154)

* refactor: remove unused context field
This commit is contained in:
Knut Zuidema
2022-07-14 12:43:42 +02:00
committed by GitHub
parent 092a692384
commit e061db8c13
5 changed files with 16 additions and 25 deletions

View File

@ -546,7 +546,6 @@ type Client struct {
*baseClient
cmdable
hooks
ctx context.Context
}
// NewClient returns a client to the Redis Server specified by Options.
@ -555,7 +554,6 @@ func NewClient(opt *Options) *Client {
c := Client{
baseClient: newBaseClient(opt, newConnPool(opt)),
ctx: context.Background(),
}
c.cmdable = c.Process