mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat(distlock): refactor into a standalone package
This commit is contained in:
1 parent
7a7a313426
commit
613cd6e418
10 files changed
+148
-142
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// Package distlock provides distributed, automatically renewed leases across independent nodes.
|
||||
//
|
||||
// A Cluster must return every node in the lock group, including temporarily unavailable nodes, because every node
|
||||
// counts toward quorum. Changing the node set is unsafe if a new quorum can be disjoint from an earlier quorum while
|
||||
// leases acquired from the earlier node set may still be valid. Callers must stop protected work when the context
|
||||
// returned by Lease.Context is done.
|
||||
package distlock
|
||||
Reference in new issue
Block a user