Skip to content

Commit

Permalink
Updated the comment for checkIfNodeIsActive() to fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhurat committed Feb 4, 2020
1 parent 3edbfc1 commit 2608b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raft/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ func (s *PublicRaftAPI) Cluster() ([]ClusterInfo, error) {
return clustInfo, nil
}

// helper function to check of the raft node is active
// of the raftnode is active ActiveSince returns non-zero time
// checkIfNodeIsActive checks if the raft node is active
// if the raft node is active ActiveSince returns non-zero time
func (s *PublicRaftAPI) checkIfNodeIsActive(raftId uint16) bool {
if raftId == s.raftService.raftProtocolManager.raftId {
return true
Expand Down

0 comments on commit 2608b97

Please sign in to comment.