Skip to content

Commit

Permalink
context: fix typo in doc
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Jan 22, 2025
1 parent 7af821c commit 40b1257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down

0 comments on commit 40b1257

Please sign in to comment.