Skip to content

Commit

Permalink
Remove redundant comma (#2557)
Browse files Browse the repository at this point in the history
* Remove redundant type cast

This commit removes a redundant type cast in gossip/comm/comm_impl.go

Change-Id: Ie8b921a5097f0d05f6645e67c31940c9daec0eb5
Signed-off-by: Yacov Manevich <[email protected]>

* Remove redundant comma

This commit removes a redundant comma in an error log message in discovery/service.go

Change-Id: I1daaf673d942ee7a44eefcb62316e5807f10bcc6
Signed-off-by: Yacov Manevich <[email protected]>
  • Loading branch information
yacovm authored Apr 23, 2021
1 parent 7db78b3 commit bd640c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (s *Service) chaincodeQuery(q *discovery.Query) *discovery.QueryResult {
for _, interest := range q.GetCcQuery().Interests {
desc, err := s.PeersForEndorsement(common2.ChannelID(q.Channel), interest)
if err != nil {
logger.Errorf("Failed constructing descriptor for chaincode %s,: %v", interest, err)
logger.Errorf("Failed constructing descriptor for chaincode %s: %v", interest, err)
return wrapError(errors.Errorf("failed constructing descriptor for %v", interest))
}
descriptors = append(descriptors, desc)
Expand Down

0 comments on commit bd640c8

Please sign in to comment.