diff --git a/consullocker/consullocker.go b/consullocker/consullocker.go index 8f9cbfc..cca7b58 100644 --- a/consullocker/consullocker.go +++ b/consullocker/consullocker.go @@ -104,7 +104,7 @@ func (locker *ConsulLocker) LockUpload(id string) error { return nil } -// UnlockUpload releases a lock. If no such lock exists, no error will be returned. +// UnlockUpload releases a lock. func (locker *ConsulLocker) UnlockUpload(id string) error { locker.mutex.Lock() defer locker.mutex.Unlock() diff --git a/etcd3locker/locker.go b/etcd3locker/locker.go index 60eefdd..87a9e0d 100644 --- a/etcd3locker/locker.go +++ b/etcd3locker/locker.go @@ -115,7 +115,7 @@ func (locker *Etcd3Locker) LockUpload(id string) error { return nil } -// UnlockUpload releases a lock. If no such lock exists, no error will be returned. +// UnlockUpload releases a lock. func (locker *Etcd3Locker) UnlockUpload(id string) error { locker.mutex.Lock() defer locker.mutex.Unlock()