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

Function processMessage

twitterdata/postprocess/postprocess.go:205–217  ·  view source on GitHub ↗
(writer io.Writer, message string)

Source from the content-addressed store, hash-verified

203}
204
205func processMessage(writer io.Writer, message string) error {
206 tweet, err := parseMessage(message)
207 if err != nil {
208 return err
209 }
210
211 // produce RDF data from tweet
212 if err := tweetToJSON(writer, tweet); err != nil {
213 return err
214 }
215
216 return nil
217}
218
219func parseMessage(message string) (*anaconda.Tweet, error) {
220 var tweet anaconda.Tweet

Callers 1

doWorkFunction · 0.85

Calls 2

parseMessageFunction · 0.85
tweetToJSONFunction · 0.85

Tested by

no test coverage detected