mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-25 13:13:47 +03:00
chore: Fix usage pool comment (#5916)
This commit is contained in:
parent
d949caf459
commit
f71d779009
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ func (up *UsagePool) LoadOrNew(key any, construct Constructor) (value any, loade
|
||||||
// LoadOrStore loads the value associated with key from the pool if it
|
// LoadOrStore loads the value associated with key from the pool if it
|
||||||
// already exists, or stores it if it does not exist. It returns the
|
// already exists, or stores it if it does not exist. It returns the
|
||||||
// value that was either loaded or stored, and true if the value already
|
// value that was either loaded or stored, and true if the value already
|
||||||
// existed and was
|
// existed and was loaded, false if the value didn't exist and was stored.
|
||||||
func (up *UsagePool) LoadOrStore(key, val any) (value any, loaded bool) {
|
func (up *UsagePool) LoadOrStore(key, val any) (value any, loaded bool) {
|
||||||
var upv *usagePoolVal
|
var upv *usagePoolVal
|
||||||
up.Lock()
|
up.Lock()
|
||||||
|
|
Loading…
Reference in a new issue