Explorar o código

docs(standbys): clarify pseudocode

Yicheng Qin %!s(int64=11) %!d(string=hai) anos
pai
achega
e5ce4fca2e
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  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
 ```