Skip to content

Commit 3b863c4

Browse files
c_lqc_lq
c_lq
authored and
c_lq
committedDec 11, 2017
[FAB-7405] Fix misleading in Comments
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>
1 parent 68e0a29 commit 3b863c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎gossip/state/state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ func (s *GossipStateProviderImpl) selectPeerToRequestFrom(height uint64) (*comm.
703703
return nil, errors.New("there are no peers to ask for missing blocks from")
704704
}
705705

706-
// Select peers to ask for blocks
706+
// Select peer to ask for blocks
707707
return peers[util.RandomInt(n)], nil
708708
}
709709

0 commit comments

Comments
 (0)
Please sign in to comment.