From b437ab9626a4cce83ee61af8d67d89a052bef6ac Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 22 Jan 2025 18:27:55 +0300 Subject: [PATCH] context: fix typo in doc Signed-off-by: Anna Shaleva --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 6d43e583..87c7150a 100644 --- a/context.go +++ b/context.go @@ -130,7 +130,7 @@ func (c *Context[H]) WatchOnly() bool { return c.MyIndex < 0 || c.Config.WatchOn // extension) messages not only for the current epoch but also for any other epoch. func (c *Context[H]) CountCommitted() (count int) { for i := range c.CommitPayloads { - // Consider both Commit and PreCommit payloads since node both Commit and PreCommit + // Consider both Commit and PreCommit payloads since both Commit and PreCommit // phases are one-directional (do not impose view change). if c.CommitPayloads[i] != nil || c.PreCommitPayloads[i] != nil { count++