Skip to content

Commit

Permalink
Docs: consullocker/etcd3locker - correct UnlockUpload method docs (tu…
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-anders authored and Acconut committed Feb 4, 2019
1 parent fa58f91 commit 057bb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consullocker/consullocker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion etcd3locker/locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 057bb9e

Please sign in to comment.