mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
refactor: remove unused context attributes (#2154)
* refactor: remove unused context field
This commit is contained in:
2
ring.go
2
ring.go
@ -410,7 +410,6 @@ type Ring struct {
|
||||
*ring
|
||||
cmdable
|
||||
hooks
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func NewRing(opt *RingOptions) *Ring {
|
||||
@ -421,7 +420,6 @@ func NewRing(opt *RingOptions) *Ring {
|
||||
opt: opt,
|
||||
shards: newRingShards(opt),
|
||||
},
|
||||
ctx: context.Background(),
|
||||
}
|
||||
|
||||
ring.cmdsInfoCache = newCmdsInfoCache(ring.cmdsInfo)
|
||||
|
Reference in New Issue
Block a user