Skip to content

Commit

Permalink
memorylocker: Fix function names in documentation (tus#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark authored and justinruggles committed Oct 26, 2020
1 parent d9f75b6 commit e2d1f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/memorylocker/memorylocker.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type memoryLock struct {
id string
}

// LockUpload tries to obtain the exclusive lock.
// Lock tries to obtain the exclusive lock.
func (lock memoryLock) Lock() error {
lock.locker.mutex.Lock()
defer lock.locker.mutex.Unlock()
Expand All @@ -60,7 +60,7 @@ func (lock memoryLock) Lock() error {
return nil
}

// UnlockUpload releases a lock. If no such lock exists, no error will be returned.
// Unlock releases a lock. If no such lock exists, no error will be returned.
func (lock memoryLock) Unlock() error {
lock.locker.mutex.Lock()

Expand Down

0 comments on commit e2d1f3d

Please sign in to comment.