go fmt
This commit is contained in:
@@ -32,17 +32,17 @@ func NewLockClient(grpcDialOption grpc.DialOption, seedFiler pb.ServerAddress) *
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LiveLock struct {
|
type LiveLock struct {
|
||||||
key string
|
key string
|
||||||
renewToken string
|
renewToken string
|
||||||
expireAtNs int64
|
expireAtNs int64
|
||||||
hostFiler pb.ServerAddress
|
hostFiler pb.ServerAddress
|
||||||
cancelCh chan struct{}
|
cancelCh chan struct{}
|
||||||
grpcDialOption grpc.DialOption
|
grpcDialOption grpc.DialOption
|
||||||
isLocked int32 // 0 = unlocked, 1 = locked; use atomic operations
|
isLocked int32 // 0 = unlocked, 1 = locked; use atomic operations
|
||||||
self string
|
self string
|
||||||
lc *LockClient
|
lc *LockClient
|
||||||
owner string
|
owner string
|
||||||
lockTTL time.Duration
|
lockTTL time.Duration
|
||||||
consecutiveFailures int // Track connection failures to trigger fallback
|
consecutiveFailures int // Track connection failures to trigger fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user