memorylocker: Fix function names in documentation (#412)

This commit is contained in:
Márk Sági-Kazár 2020-08-01 15:02:46 +02:00 committed by GitHub
parent ec9c56bb03
commit 3a344c5e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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