MCPcopy
hub / github.com/caddyserver/certmagic / releaseLock

Function releaseLock

storage.go:333–341  ·  view source on GitHub ↗
(ctx context.Context, storage Storage, lockKey string)

Source from the content-addressed store, hash-verified

331}
332
333func releaseLock(ctx context.Context, storage Storage, lockKey string) error {
334 err := storage.Unlock(context.WithoutCancel(ctx), lockKey)
335 if err == nil {
336 locksMu.Lock()
337 delete(locks, lockKey)
338 locksMu.Unlock()
339 }
340 return err
341}
342
343// locks stores a reference to all the current
344// locks obtained by this process.

Callers 5

updateARIMethod · 0.85
CleanStorageFunction · 0.85
obtainCertMethod · 0.85
renewCertMethod · 0.85

Calls 2

UnlockMethod · 0.65
LockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…