Skip to content

Commit

Permalink
[FAB-7405] Fix misleading in Comments
Browse files Browse the repository at this point in the history
Comment in fabric/gossip/state/state.go Line:706, should be "Select peer to ask for blocks" rather than "Select peers to ask for blocks", since it just selects one peer, so "peers" in this comment will be misleading.

Change-Id: I15a7c66fd9d9ede7cd2dada2eef16656bc04b594
Signed-off-by: c_lq <Caojing@hyperchain.cn>
  • Loading branch information
c_lq authored and c_lq committed Dec 11, 2017
1 parent 68e0a29 commit 3b863c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ func (s *GossipStateProviderImpl) selectPeerToRequestFrom(height uint64) (*comm.
return nil, errors.New("there are no peers to ask for missing blocks from")
}

// Select peers to ask for blocks
// Select peer to ask for blocks
return peers[util.RandomInt(n)], nil
}

Expand Down

0 comments on commit 3b863c4

Please sign in to comment.