Skip to content

Commit

Permalink
fix incorrect usage
Browse files Browse the repository at this point in the history
Signed-off-by: Lorain <[email protected]>
  • Loading branch information
justlorain committed Oct 15, 2024
1 parent 01b0aa7 commit 83f14ac
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 they 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 83f14ac

Please sign in to comment.