From 7486d3d4c57933f1b11b1298e3d333acc9a0c0b6 Mon Sep 17 00:00:00 2001 From: Blake Mizerany Date: Mon, 25 Aug 2014 12:49:14 -0700 Subject: [PATCH] raft: mention error in doc --- raft/node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raft/node.go b/raft/node.go index dfcfc077a..8d9fe9de6 100644 --- a/raft/node.go +++ b/raft/node.go @@ -104,7 +104,8 @@ func (n *Node) Propose(ctx context.Context, data []byte) error { // Step advances the state machine using msgs. Proposals are priotized last so // that any votes and vote requests will not be wedged behind proposals and -// prevent this cluster from making progress. +// prevent this cluster from making progress. The ctx.Err() will be returned, +// if any. func (n *Node) Step(ctx context.Context, msgs []Message) error { sort.Sort(sort.Reverse(messages(msgs))) for _, m := range msgs {