MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / AnyServer

Method AnyServer

worker/groups.go:608–617  ·  view source on GitHub ↗
(gid uint32)

Source from the content-addressed store, hash-verified

606}
607
608func (g *groupi) AnyServer(gid uint32) *conn.Pool {
609 members := g.members(gid)
610 for _, m := range members {
611 pl, err := conn.GetPools().Get(m.Addr)
612 if err == nil {
613 return pl
614 }
615 }
616 return nil
617}
618
619func (g *groupi) MyPeer() (uint64, bool) {
620 members := g.members(g.groupId())

Callers 3

connToZeroLeaderMethod · 0.95
BackupGroupFunction · 0.80
RemoveNodeOverNetworkFunction · 0.80

Calls 3

membersMethod · 0.95
GetPoolsFunction · 0.92
GetMethod · 0.65

Tested by

no test coverage detected