Updated the comment for checkIfNodeIsActive() to fix typo

This commit is contained in:
Jitendra Bhurat 2020-02-04 12:26:51 -05:00
parent 3edbfc1e2d
commit 2608b97ae5
1 changed files with 2 additions and 2 deletions

View File

@ -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