Skip to content

Commit

Permalink
[FAB-7445] Fix Comment Error
Browse files Browse the repository at this point in the history
In file fabric/common/channelconfig/applicationorg.go  Line 66,
there is a comment describe the function of method
`func (aog *ApplicationOrgConfig) AnchorPeers() []*pb.AnchorPeer`

the comment says:

`// AnchorPeers returns the list of valid orderer addresses to connect to to invoke Broadcast/Deliver`

But the real function of this method is to return the list of Anchor peers of this Organization,
so the comment is WRONG.I modify the comment as below:

`// AnchorPeers returns the list of anchor peers of this Organization`

Change-Id: I2a63a3847153ab0667db65b4012413bc020fc97e
Signed-off-by: c_lq <Caojing@hyperchain.cn>
  • Loading branch information
c_lq authored and c_lq committed Dec 13, 2017
1 parent b6afecd commit e6c9ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/channelconfig/applicationorg.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewApplicationOrgConfig(id string, orgGroup *cb.ConfigGroup, mspConfig *MSP
return aoc, nil
}

// AnchorPeers returns the list of valid orderer addresses to connect to to invoke Broadcast/Deliver
// AnchorPeers returns the list of anchor peers of this Organization
func (aog *ApplicationOrgConfig) AnchorPeers() []*pb.AnchorPeer {
return aog.protos.AnchorPeers.AnchorPeers
}
Expand Down

0 comments on commit e6c9ab7

Please sign in to comment.