Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some function names #363

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/chaindbForRaft.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (cdb *ChainDB) ResetWAL(hardStateInfo *types.HardStateInfo) error {
return nil
}

// ClearWal() removes all data used by raft
// ClearWAL removes all data used by raft
func (cdb *ChainDB) ClearWAL() {
logger.Info().Msg("clear all data used by raft")

Expand Down
2 changes: 1 addition & 1 deletion consensus/impl/raftv2/raftserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ func (rs *raftServer) GetLeaderStatus() LeaderStatus {
return tmpStatus
}

// IsTermLeader returns true if this node is leader of given term
// IsLeaderOfTerm returns true if this node is leader of given term
func (rs *raftServer) IsLeaderOfTerm(term uint64) bool {
status := rs.GetLeaderStatus()
return status.IsLeader && status.Term == term
Expand Down
2 changes: 1 addition & 1 deletion internal/network/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type gsvrBuilder struct {
opts []grpc.ServerOption
}

// GRPCServerBuilder returns a new GRPC server builder.
// GRPCSeverBuilder returns a new GRPC server builder.
func GRPCSeverBuilder() *gsvrBuilder {
return &gsvrBuilder{opts: make([]grpc.ServerOption, 0)}
}
Expand Down