Unlock releases the lock.
(ctx context.Context)
| 37 | |
| 38 | // Unlock releases the lock. |
| 39 | func (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. |
| 45 | func (l *EmbeddedLockContext) Lease(ctx context.Context, duration time.Duration) error { |
nothing calls this directly
no test coverage detected