Commit 7f8e5331 authored by Yacov Manevich's avatar Yacov Manevich Committed by Gerrit Code Review
Browse files

Merge "[FAB-5499]: Flatten logic of gossip Peers API"

parents 1bef02c1 3e1a17ea
......@@ -646,12 +646,7 @@ func (g *gossipServiceImpl) Send(msg *proto.GossipMessage, peers ...*comm.Remote
// GetPeers returns a mapping of endpoint --> []discovery.NetworkMember
func (g *gossipServiceImpl) Peers() []discovery.NetworkMember {
s := []discovery.NetworkMember{}
for _, member := range g.disc.GetMembership() {
s = append(s, member)
}
return s
return g.disc.GetMembership()
}
// PeersOfChannel returns the NetworkMembers considered alive
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment