Fix lint errors
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
a4ac85aa4a
commit
884be62a4d
32 changed files with 127 additions and 161 deletions
|
|
@ -2,7 +2,6 @@ package locking
|
|||
|
||||
import "time"
|
||||
|
||||
// TODO(gabriel-samfira): needs owner attribute.
|
||||
type Locker interface {
|
||||
TryLock(key, identifier string) bool
|
||||
Lock(key, identifier string)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import (
|
|||
)
|
||||
|
||||
var locker Locker
|
||||
|
||||
var lockerMux = sync.Mutex{}
|
||||
|
||||
func TryLock(key, identifier string) (ok bool, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue