mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 22:24:54 +00:00
feat(store): improve waiting for store replication to skip unavailable members
This commit is contained in:
1 parent
0e53f505c0
commit
e4bd1ad443
7 files changed
+76
-26
No files matched your search
@@ -24,11 +24,12 @@ var (
|
||||
|
||||
// Store is a cluster store backed by a distributed Corrosion database.
|
||||
type Store struct {
|
||||
corro *corrosion.APIClient
|
||||
corro *corrosion.APIClient
|
||||
corroAdmin *corrosion.AdminClient
|
||||
}
|
||||
|
||||
func New(corro *corrosion.APIClient) *Store {
|
||||
return &Store{corro: corro}
|
||||
func New(corro *corrosion.APIClient, corroAdmin *corrosion.AdminClient) *Store {
|
||||
return &Store{corro: corro, corroAdmin: corroAdmin}
|
||||
}
|
||||
|
||||
// Get retrieves an unnamespaced legacy value.
|
||||
|
||||
Reference in new issue
Block a user