From 3a344c5e81cc5f00db52af5e666eb38588721d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20S=C3=A1gi-Kaz=C3=A1r?= Date: Sat, 1 Aug 2020 15:02:46 +0200 Subject: [PATCH] memorylocker: Fix function names in documentation (#412) --- pkg/memorylocker/memorylocker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/memorylocker/memorylocker.go b/pkg/memorylocker/memorylocker.go index 932cc5a..504ae3e 100644 --- a/pkg/memorylocker/memorylocker.go +++ b/pkg/memorylocker/memorylocker.go @@ -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()