werf / lockgate

Lockgate is a cross-platform distributed locking library for Go. Supports distributed locks backed by Kubernetes or HTTP lock server. Supports conventional OS file locks.
Apache License 2.0
257 stars 16 forks source link

Acquire OnWaitFunc callback support for kubernetes locker #23

Closed distorhead closed 4 years ago

distorhead commented 4 years ago

OnWaitFunc signature changed from func(lock LockHandle, doWait func() error) error to func(lockName string, doWait func() error) error, because at the wait moment lock-handle is not yet fully avaiable for the kubernetes locker.