From 057bb9e2c7a561e9adc18183e2cf547409c09e5a Mon Sep 17 00:00:00 2001 From: Anders Chen Date: Tue, 5 Feb 2019 04:33:17 +0700 Subject: [PATCH] Docs: consullocker/etcd3locker - correct UnlockUpload method docs (#237) --- consullocker/consullocker.go | 2 +- etcd3locker/locker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consullocker/consullocker.go b/consullocker/consullocker.go index 8f9cbfc..cca7b58 100644 --- a/consullocker/consullocker.go +++ b/consullocker/consullocker.go @@ -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() diff --git a/etcd3locker/locker.go b/etcd3locker/locker.go index 60eefdd..87a9e0d 100644 --- a/etcd3locker/locker.go +++ b/etcd3locker/locker.go @@ -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()