Clarify the use of groupcache.NewHTTPPoolOpts() in the documentation

Fixes #20
This commit is contained in:
Derrick J. Wippler 2020-11-19 20:12:15 -06:00 committed by GitHub
parent 8672aac324
commit 65c4ea5d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,4 +149,5 @@ func ExampleUsage() {
} }
``` ```
### Note
The call to `groupcache.NewHTTPPoolOpts()` is a bit misleading. `NewHTTPPoolOpts()` creates a new pool internally within the `groupcache` package where it is uitilized by any groups created. The `pool` returned is only a pointer to the internallly registered pool so the caller can update the peers in the pool as needed.