Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: wuqiaomin <wuqiaomin2@huawei.com>
  • Loading branch information
wuqiaomin authored and denyeart committed Apr 22, 2021
1 parent 6790f42 commit ed1026c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/chaincode/persistence/chaincode_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (fpl *FallbackPackageLocator) GetChaincodePackage(packageID string) (*Chain

mdBytes, err := json.Marshal(md)
if err != nil {
return nil, nil, nil, errors.WithMessagef(err, "could not marshal metdata for chaincode package '%s'", packageID)
return nil, nil, nil, errors.WithMessagef(err, "could not marshal metadata for chaincode package '%s'", packageID)
}

return md,
Expand Down
4 changes: 2 additions & 2 deletions core/ledger/kvledger/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ func (p *Provider) CreateFromSnapshot(snapshotDir string) (ledger.PeerLedger, st
}

func loadSnapshotMetadataJSONs(snapshotDir string) (*snapshotMetadataJSONs, error) {
signableMetdataFilePath := filepath.Join(snapshotDir, snapshotSignableMetadataFileName)
signableMetadataBytes, err := ioutil.ReadFile(signableMetdataFilePath)
signableMetadataFilePath := filepath.Join(snapshotDir, snapshotSignableMetadataFileName)
signableMetadataBytes, err := ioutil.ReadFile(signableMetadataFilePath)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion orderer/consensus/etcdraft/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ type Options struct {
MaxSizePerMsg uint64
MaxInflightBlocks int

// BlockMetdata and Consenters should only be modified while under lock
// BlockMetadata and Consenters should only be modified while under lock
// of raftMetadataLock
BlockMetadata *etcdraft.BlockMetadata
Consenters map[uint64]*etcdraft.Consenter
Expand Down

0 comments on commit ed1026c

Please sign in to comment.