From 83f14aca768bae89a444506cd0deb660631215f9 Mon Sep 17 00:00:00 2001 From: Lorain Date: Tue, 15 Oct 2024 12:17:08 +0100 Subject: [PATCH] fix incorrect usage Signed-off-by: Lorain --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 09a56efa..5e46c526 100644 --- a/README.md +++ b/README.md @@ -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: