Skip to content

Commit 350ce95

Browse files
committed
Doc: fix typo: n0 should be n1 in faq.md
1 parent da391be commit 350ce95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openraft/src/docs/faq/faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Excessive error logging, like `ERROR openraft::replication: 248: RPCError err=Ne
3535
There are two ways to initialize a raft cluster, assuming there are three nodes, `n1, n2, n3`:
3636

3737
1. Single-step method: Call `Raft::initialize()` on any one of the nodes with the configuration of all 3 nodes, e.g. `n2.initialize(btreeset! {1,2,3})`.
38-
2. Incremental method: First, call `Raft::initialize()` on `n1` with configuraion containing `n1` itself, e.g., `n0.initialize(btreeset! {1})`. Subsequently use `Raft::change_membership()` on `n1` to add `n2` and `n3` into the cluster.
38+
2. Incremental method: First, call `Raft::initialize()` on `n1` with configuraion containing `n1` itself, e.g., `n1.initialize(btreeset! {1})`. Subsequently use `Raft::change_membership()` on `n1` to add `n2` and `n3` into the cluster.
3939

4040
Employing the second method provides the flexibility to start with a single-node cluster for testing purposes and subsequently expand it to a three-node cluster for deployment in a production environment.
4141

0 commit comments

Comments
 (0)