Procházet zdrojové kódy

docs(standbys): clarify pseudocode

Yicheng Qin před 11 roky
rodič
revize
e5ce4fca2e
1 změnil soubory, kde provedl 4 přidání a 5 odebrání
  1. 4 5
      Documentation/design/standbys.md

+ 4 - 5
Documentation/design/standbys.md

@@ -104,11 +104,10 @@ Loop:
 
   Sync cluster, and write cluster info into disk
 
-  If peer count < active size:
-    Send join request
-    If succeed:
-      Clear cluster info from disk
-      Return
+  Check active size and send join request if needed
+  If succeed:
+    Clear cluster info from disk
+    Return
 ```