Skip to content

Commit

Permalink
Fix nits in function AddOrdererEndpoint
Browse files Browse the repository at this point in the history
Description

Fix nits in function AddOrdererEndpoint which were imported by
#857.

Signed-off-by: xu wu <wuxu1103@163.com>
  • Loading branch information
wuxuer authored and sykesm committed Mar 20, 2020
1 parent 66b9722 commit eb17803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/orderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func addOrdererPolicies(cg *cb.ConfigGroup, policyMap map[string]Policy, modPoli
return addPolicies(cg, policyMap, modPolicy)
}

// AddOrdererEndpoints adds an orderer's endpoint to an existing channel config transaction.
// AddOrdererEndpoint adds an orderer's endpoint to an existing channel config transaction.
// It must add the endpoint to an existing org and the endpoint must not already
// exist in the org.
func AddOrdererEndpoint(config *cb.Config, orgName string, endpoint string) error {
Expand All @@ -311,7 +311,7 @@ func AddOrdererEndpoint(config *cb.Config, orgName string, endpoint string) erro
if ordererAddrConfigValue, ok := ordererOrgGroup.Values[EndpointsKey]; ok {
err := proto.Unmarshal(ordererAddrConfigValue.Value, ordererAddrProto)
if err != nil {
return fmt.Errorf("failed unmarshalling orderer org %s's endpoints: %v", orgName, err)
return fmt.Errorf("failed unmarshalling orderer org %s's endpoints: %v", orgName, err)
}
}

Expand Down

0 comments on commit eb17803

Please sign in to comment.