MCPcopy
hub / github.com/olric-data/olric / Unlock

Method Unlock

embedded_client.go:39–42  ·  view source on GitHub ↗

Unlock releases the lock.

(ctx context.Context)

Source from the content-addressed store, hash-verified

37
38// Unlock releases the lock.
39func (l *EmbeddedLockContext) Unlock(ctx context.Context) error {
40 err := l.dm.dm.Unlock(ctx, l.key, l.token)
41 return convertDMapError(err)
42}
43
44// Lease takes the duration to update the expiry for the given Lock.
45func (l *EmbeddedLockContext) Lease(ctx context.Context, duration time.Duration) error {

Callers

nothing calls this directly

Calls 2

convertDMapErrorFunction · 0.85
UnlockMethod · 0.65

Tested by

no test coverage detected