Skip to content

Commit

Permalink
fix struct names in comments
Browse files Browse the repository at this point in the history
Signed-off-by: racerole <jiangyifeng@outlook.com>
  • Loading branch information
racerole authored and denyeart committed Mar 6, 2024
1 parent 7bb48be commit 1a027f7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/policies/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ConfigPolicy interface {
Value() *cb.Policy
}

// StandardConfigValue implements the ConfigValue interface.
// StandardConfigPolicy implements the ConfigValue interface.
type StandardConfigPolicy struct {
key string
value *cb.Policy
Expand Down
2 changes: 1 addition & 1 deletion core/aclmgmt/resourceprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (e InvalidIdInfo) Error() string {

//---------- policyEvaluator ------

// policyEvalutor interface provides the interfaces for policy evaluation
// policyEvaluator interface provides the interfaces for policy evaluation
type policyEvaluator interface {
PolicyRefForAPI(resName string) string
Evaluate(polName string, id []*protoutil.SignedData) error
Expand Down
2 changes: 1 addition & 1 deletion core/common/validation/statebased/vpmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"fmt"
)

// ValidationParameterUpdatedErr is returned whenever
// ValidationParameterUpdatedError is returned whenever
// Validation Parameters for a key could not be
// supplied because they are being updated
type ValidationParameterUpdatedError struct {
Expand Down
4 changes: 2 additions & 2 deletions core/scc/lscc/lscc.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ type ChaincodeBuilder interface {
Build(ccid string) error
}

// MSPsIDGetter is used to get the MSP IDs for a channel.
// MSPIDsGetter is used to get the MSP IDs for a channel.
type MSPIDsGetter func(string) []string

// IDMSPManagerGetters used to get the MSP Manager for a channel.
// MSPManagerGetter used to get the MSP Manager for a channel.
type MSPManagerGetter func(string) msp.MSPManager

// ---------- the LSCC -----------------
Expand Down
2 changes: 1 addition & 1 deletion gossip/gossip/pull/pullstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func (p *pullMediatorImpl) SendReq(dest string, items []string, nonce uint64) {
p.Sndr.Send(sMsg, p.peersWithEndpoints(dest)...)
}

// typeDigster normalizes the common digest operations needed to format them
// typedDigester normalizes the common digest operations needed to format them
// for log messages.
type typedDigester interface {
GetMsgType() gossip.PullMsgType
Expand Down

0 comments on commit 1a027f7

Please sign in to comment.