Browse Source

Fix JoinCommand comment.

Ben Johnson 11 years ago
parent
commit
c3b4afc139
1 changed files with 3 additions and 5 deletions
  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 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
 //     join_index   |  join_mode
 //
 //
 type JoinCommand struct {
 type JoinCommand struct {