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

Struct kafkaSinkClient

worker/sink_handler.go:60–63  ·  view source on GitHub ↗

Kafka client is not concurrency safe. Its the responsibility of callee to manage the concurrency.

Source from the content-addressed store, hash-verified

58// Kafka client is not concurrency safe.
59// Its the responsibility of callee to manage the concurrency.
60type kafkaSinkClient struct {
61 client sarama.Client
62 producer sarama.SyncProducer
63}
64
65func newKafkaSink(config *z.SuperFlag) (Sink, error) {
66 if config.GetString("kafka") == "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected