MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / writeVal

Function writeVal

convert/main.go:118–123  ·  view source on GitHub ↗
(m *sync.Mutex, w *gzip.Writer, s, p, o string)

Source from the content-addressed store, hash-verified

116}
117
118func writeVal(m *sync.Mutex, w *gzip.Writer, s, p, o string) {
119 str := fmt.Sprintf("<%v> <%v> \"%v\" .\n", s, p, o)
120 m.Lock()
121 defer m.Unlock()
122 w.Write([]byte(str))
123}
124
125func writeOut(m *sync.Mutex, w *gzip.Writer, s, p, o string) {
126 str := fmt.Sprintf("<%v> <%v> <%v> .\n", s, p, o)

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected