From 9ea80c6ac10ca010e9f3eb3f75badf03cd190e15 Mon Sep 17 00:00:00 2001 From: funkygao Date: Tue, 17 Mar 2015 10:00:08 +0800 Subject: [PATCH] raft: fix godoc about starting a node --- raft/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/doc.go b/raft/doc.go index dd27310b5..9a772cd25 100644 --- a/raft/doc.go +++ b/raft/doc.go @@ -18,7 +18,7 @@ Package raft provides an implementation of the raft consensus algorithm. The primary object in raft is a Node. You either start a Node from scratch using raft.StartNode or start a Node from some initial state using raft.RestartNode. storage := raft.NewMemoryStorage() - n := raft.StartNode(0x01, []int64{0x02, 0x03}, 3, 1, storage) + n := raft.StartNode(0x01, []raft.Peer{{ID: 0x02}, {ID: 0x03}}, 3, 1, storage) Now that you are holding onto a Node you have a few responsibilities: