From 7f30434f49847cc121782b8485f7b48c86948873 Mon Sep 17 00:00:00 2001 From: "bjzhang03@foxmail.com" Date: Wed, 27 Nov 2019 16:16:49 +0800 Subject: [PATCH] [FAB-17136] Fix the typo error (#318) * [FAB-17136] Fix the typo error This is fix #FAB-17136 Signed-off-by: bjzhang --- common/channelconfig/channel.go | 2 +- common/channelconfig/consortium.go | 4 ++-- common/channelconfig/msp.go | 2 +- common/channelconfig/util.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/channelconfig/channel.go b/common/channelconfig/channel.go index e8946faa3f4..7677ec5f288 100644 --- a/common/channelconfig/channel.go +++ b/common/channelconfig/channel.go @@ -138,7 +138,7 @@ func (cc *ChannelConfig) ConsortiumsConfig() *ConsortiumsConfig { return cc.consortiumsConfig } -// HashingAlgorithm returns a function pointer to the chain hashing algorihtm +// HashingAlgorithm returns a function pointer to the chain hashing algorithm func (cc *ChannelConfig) HashingAlgorithm() func(input []byte) []byte { return cc.hashingAlgorithm } diff --git a/common/channelconfig/consortium.go b/common/channelconfig/consortium.go index f8e59e2ba8e..f6b9d2fecb5 100644 --- a/common/channelconfig/consortium.go +++ b/common/channelconfig/consortium.go @@ -22,13 +22,13 @@ type ConsortiumProtos struct { ChannelCreationPolicy *cb.Policy } -// ConsortiumConfig holds the consoritums configuration information +// ConsortiumConfig holds the consortium's configuration information type ConsortiumConfig struct { protos *ConsortiumProtos orgs map[string]Org } -// NewConsortiumConfig creates a new instance of the consoritums config +// NewConsortiumConfig creates a new instance of the consortium's config func NewConsortiumConfig(consortiumGroup *cb.ConfigGroup, mspConfig *MSPConfigHandler) (*ConsortiumConfig, error) { cc := &ConsortiumConfig{ protos: &ConsortiumProtos{}, diff --git a/common/channelconfig/msp.go b/common/channelconfig/msp.go index 7099a40b913..d591125d923 100644 --- a/common/channelconfig/msp.go +++ b/common/channelconfig/msp.go @@ -37,7 +37,7 @@ func NewMSPConfigHandler(mspVersion msp.MSPVersion, bccsp bccsp.BCCSP) *MSPConfi } } -// ProposeValue called when an org defines an MSP +// ProposeMSP called when an org defines an MSP func (bh *MSPConfigHandler) ProposeMSP(mspConfig *mspprotos.MSPConfig) (msp.MSP, error) { var theMsp msp.MSP var err error diff --git a/common/channelconfig/util.go b/common/channelconfig/util.go index c4682aca518..cf8b0ca014d 100644 --- a/common/channelconfig/util.go +++ b/common/channelconfig/util.go @@ -222,7 +222,7 @@ func ChannelCreationPolicyValue(policy *cb.Policy) *StandardConfigValue { } } -// ACLsValues returns the config definition for an applications resources based ACL definitions. +// ACLValues returns the config definition for an applications resources based ACL definitions. // It is a value for the /Channel/Application/. func ACLValues(acls map[string]string) *StandardConfigValue { a := &pb.ACLs{