Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone() method exposes the internal type `hooks` #1258

Closed
pierrre opened this issue Feb 12, 2020 · 2 comments · Fixed by #1259
Closed

Clone() method exposes the internal type `hooks` #1258

pierrre opened this issue Feb 12, 2020 · 2 comments · Fixed by #1259

Comments

@pierrre
Copy link

@pierrre pierrre commented Feb 12, 2020

https://pkg.go.dev/github.com/go-redis/redis/v7@v7.0.0?tab=doc#Client.Clone

The returned value is the private type hooks.
Is that normal ? (that's very unusual from my point of view)

@vmihailenco

This comment has been minimized.

Copy link
Contributor

@vmihailenco vmihailenco commented Feb 12, 2020

No, that is a method from an embedded hooks struct. Thanks for the report.

@pierrre

This comment has been minimized.

Copy link
Author

@pierrre pierrre commented Feb 12, 2020

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.