Skip to content

Commit

Permalink
fix incorrect usage in readme (#227)
Browse files Browse the repository at this point in the history
* fix incorrect usage

Signed-off-by: Lorain <[email protected]>

---------

Signed-off-by: Lorain <[email protected]>
  • Loading branch information
justlorain authored Dec 12, 2024
1 parent 13bbddc commit 3eb557d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ To start a three-node cluster
MaxSizePerMsg: 4096,
MaxInflightMsgs: 256,
}
// Set peer list to the other nodes in the cluster.
// Note that they need to be started separately as well.
n := raft.StartNode(c, []raft.Peer{{ID: 0x02}, {ID: 0x03}})
// Set peer list to all nodes in the cluster.
// Note that other nodes in the cluster, apart from this node, need to be started separately.
n := raft.StartNode(c, []raft.Peer{{ID: 0x01}, {ID: 0x02}, {ID: 0x03}})
```

Start a single node cluster, like so:
Expand Down

0 comments on commit 3eb557d

Please sign in to comment.