cluster: generate ring keys on scan if missing

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-10-27 19:00:06 +00:00
parent 543824a54a
commit e5639b2f4e
4 changed files with 40 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func (ri *RingInfo) Merge(alter *RingInfo) error {
// can't disable via Merge
return fmt.Errorf("invalid %s: %v → %v", "enabled", ri.Enabled, alter.Enabled)
case !canMergeKeyPairs(ri.Keys, alter.Keys):
// incompatible keypairs
// incompatible key pairs
return fmt.Errorf("invalid %s: %s ≠ %s", "keys", ri.Keys, alter.Keys)
}