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

Method report

dgraph/cmd/bulk/progress.go:58–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (p *progress) report() {
59 t := time.Tick(time.Second)
60
61 z.StatsPrint() // Just print once.
62 for {
63 select {
64 case <-t:
65 p.reportOnce()
66 case <-p.shutdown:
67 p.shutdown <- struct{}{}
68 return
69 }
70 }
71}
72
73func (p *progress) reportOnce() {
74 mapEdgeCount := atomic.LoadInt64(&p.mapEdgeCount)

Callers 1

newLoaderFunction · 0.80

Calls 1

reportOnceMethod · 0.95

Tested by

no test coverage detected