Skip to content

Commit

Permalink
chore: fix comments (#4852)
Browse files Browse the repository at this point in the history
Signed-off-by: arkdrq <169236000+arkdrq@users.noreply.github.com>
Co-authored-by: arkdrq <169236000+arkdrq@users.noreply.github.com>
  • Loading branch information
arkdrq and arkdrq committed May 10, 2024
1 parent ea2dbc9 commit 810b465
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/deliverclient/blocksprovider/bft_deliverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (d *BFTDeliverer) FetchBlocks(source *orderers.Endpoint) {
// Starts a goroutine that receives blocks from the stream client and places them in the `recvC` channel
blockRcv.Start()

// Consume blocks fom the `recvC` channel
// Consume blocks from the `recvC` channel
if errProc := blockRcv.ProcessIncoming(d.onBlockProcessingSuccess); errProc != nil {
switch errProc.(type) {
case *ErrStopping:
Expand Down
2 changes: 1 addition & 1 deletion common/ledger/blkstorage/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const (
// recordHeightIfGreaterThanPreviousRecording creates a file "__preResetHeight" in the ledger's
// directory. This file contains human readable string for the current block height. This function
// only overwrites this information if the current block height is higher than the one recorded in
// the existing file (if present). This helps in achieving fail-safe behviour of reset utility
// the existing file (if present). This helps in achieving fail-safe behaviour of reset utility
func recordHeightIfGreaterThanPreviousRecording(ledgerDir string) error {
logger.Infof("Preparing to record current height for ledger at [%s]", ledgerDir)
blkfilesInfo, err := constructBlockfilesInfo(ledgerDir)
Expand Down
2 changes: 1 addition & 1 deletion common/ledger/blkstorage/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (r *rollbackMgr) rollbackBlockFiles() error {

filePath := deriveBlockfilePath(r.ledgerDir, targetFileNum)
if err := os.Truncate(filePath, endOffset); err != nil {
return errors.Wrapf(err, "error trucating the block file [%s]", filePath)
return errors.Wrapf(err, "error truncating the block file [%s]", filePath)
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion common/policies/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ type ChannelPolicyManagerGetter interface {
Manager(channelID string) Manager
}

// PolicyManagerGetterFunc is a function adapater for ChannelPolicyManagerGetter.
// PolicyManagerGetterFunc is a function adapter for ChannelPolicyManagerGetter.
type PolicyManagerGetterFunc func(channelID string) Manager

func (p PolicyManagerGetterFunc) Manager(channelID string) Manager { return p(channelID) }
Expand Down

0 comments on commit 810b465

Please sign in to comment.