Ben Johnson 12 лет назад
Родитель
Сommit
c3b4afc139
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      server/join_command.go

+ 3 - 5
server/join_command.go

@@ -14,12 +14,10 @@ func init() {
 
 // The JoinCommand adds a node to the cluster.
 //
-// The command returns two values back to binary format.
-// The first value is a Uvarint representing the the join_index.
-// The second value is a single byte flag representing whether the joining
-// node is a peer (0) or a proxy (1).
+// The command returns the join_index (Uvarint) and peer flag (peer=0, proxy=1)
+// in following binary format:
 //
-//     8 bytes      |   1 byte
+//     8 bytes      |  1 byte
 //     join_index   |  join_mode
 //
 type JoinCommand struct {