Docs: consullocker/etcd3locker - correct UnlockUpload method docs (#237)

This commit is contained in:
Anders Chen 2019-02-05 04:33:17 +07:00 committed by Marius
parent fa58f91bb4
commit 057bb9e2c7
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()