mirror of
https://github.com/redis/go-redis.git
synced 2026-01-12 10:23:12 +03:00
refactor: remove unused context attributes (#2154)
* refactor: remove unused context field
This commit is contained in:
2
redis.go
2
redis.go
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user