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

chore: fix comments #4852

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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