MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / shouldUseKafka

Function shouldUseKafka

packages/queue/src/kafka.ts:83–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81export const isKafkaConfigured = (): boolean => KAFKA_BROKERS.length > 0;
82
83export const shouldUseKafka = (): boolean => isKafkaConfigured();
84
85let kafka: Kafka | null = null;
86const getKafka = (): Kafka => {

Callers 2

handleTrackFunction · 0.90
postEventFunction · 0.90

Calls 1

isKafkaConfiguredFunction · 0.85

Tested by

no test coverage detected