()
| 81 | } |
| 82 | |
| 83 | func (l *Leaser) lockKey() string { |
| 84 | if l.Path == "" { |
| 85 | return DefaultLeasePath |
| 86 | } |
| 87 | return l.Path + "/" + DefaultLeasePath |
| 88 | } |
| 89 | |
| 90 | func (l *Leaser) AcquireLease(ctx context.Context) (*litestream.Lease, error) { |
| 91 | existing, etag, err := l.readLease(ctx) |
no outgoing calls