Docs: consullocker/etcd3locker - correct UnlockUpload method docs (#237)
This commit is contained in:
parent
fa58f91bb4
commit
057bb9e2c7
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue