Skip to content

Commit

Permalink
chore: fix function names (#4260)
Browse files Browse the repository at this point in the history
Signed-off-by: ianlv <[email protected]>
Co-authored-by: CoderZhi <[email protected]>
  • Loading branch information
ianlv and CoderZhi authored May 13, 2024
1 parent a4ba831 commit fdd9359
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion action/protocol/execution/evm/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c *contract) Iterator() (trie.Iterator, error) {
return mptrie.NewLeafIterator(c.trie)
}

// GetState get the committed value of a key
// GetCommittedState get the committed value of a key
func (c *contract) GetCommittedState(key hash.Hash256) ([]byte, error) {
if v, ok := c.committed[key]; ok {
return v, nil
Expand Down
2 changes: 1 addition & 1 deletion action/protocol/staking/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func (p *Protocol) calculateVoteWeight(v *VoteBucket, selfStake bool) *big.Int {
return CalculateVoteWeight(p.config.VoteWeightCalConsts, v, selfStake)
}

// settleAccount deposits gas fee and updates caller's nonce
// settleAction deposits gas fee and updates caller's nonce
func (p *Protocol) settleAction(
ctx context.Context,
sm protocol.StateManager,
Expand Down
2 changes: 1 addition & 1 deletion actpool/queueworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (worker *queueWorker) Stop() error {
return nil
}

// Hanlde is called sequentially by worker
// Handle is called sequentially by worker
func (worker *queueWorker) Handle(job workerJob) error {
ctx := job.ctx
// ctx is canceled or timeout
Expand Down
2 changes: 1 addition & 1 deletion api/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type safeWebsocketConn struct {
mu sync.Mutex
}

// WiteJSON writes a JSON message to the connection in a thread-safe way
// WriteJSON writes a JSON message to the connection in a thread-safe way
func (c *safeWebsocketConn) WriteJSON(message interface{}) error {
c.mu.Lock()
defer c.mu.Unlock()
Expand Down

0 comments on commit fdd9359

Please sign in to comment.