-
-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix advanced cache initialization in README (#198)
* Fix advanced cache initialization in README As per the documentation of GetConfigForCert: > The returned Config MUST be associated with the same Cache as the caller. A valid Config cannot be constructed with &certmagic.Config{} as the certCache field is unexported. The only way to construct a Config with a non-nil Cache is to use either NewDefault or New. * Make it an error for GetConfigForCert to return Config w/ nil cache This prevents an invalid Config from slipping through and causing a hard to debug nil pointer dereference at some later point.
- Loading branch information
Showing
2 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters