Fix lint errors

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-04-27 20:28:06 +00:00
parent a4ac85aa4a
commit 884be62a4d
32 changed files with 127 additions and 161 deletions

View file

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

View file

@ -8,6 +8,7 @@ import (
)
var locker Locker
var lockerMux = sync.Mutex{}
func TryLock(key, identifier string) (ok bool, err error) {