MCPcopy
hub / github.com/dgraph-io/dgraph / relogin

Method relogin

xidmap/xidmap.go:200–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func (m *XidMap) relogin() error {
201 if m.dg == nil {
202 return nil
203 }
204
205 ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
206 defer cancel()
207 return m.dg.Relogin(ctx)
208}
209
210func (m *XidMap) shardFor(xid string) *shard {
211 fp := z.MemHashString(xid)

Callers 2

NewFunction · 0.95
BumpToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected