mirror of
https://github.com/redis/go-redis.git
synced 2025-12-08 08:42:11 +03:00
Unexport Clone and Lock from embedded hooks
This commit is contained in:
@@ -696,7 +696,7 @@ func (c *ClusterClient) WithContext(ctx context.Context) *ClusterClient {
|
||||
}
|
||||
clone := *c
|
||||
clone.cmdable = clone.Process
|
||||
clone.hooks.Lock()
|
||||
clone.hooks.lock()
|
||||
clone.ctx = ctx
|
||||
return &clone
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user