We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b90d16 commit f927b48Copy full SHA for f927b48
examples/producer.js
@@ -26,7 +26,7 @@ const kafka = new Kafka({
26
const topic = 'topic-test'
27
const producer = kafka.producer()
28
29
-const getRandomNumber = () => Math.round(Math.random(10) * 1000)
+const getRandomNumber = () => Math.round(Math.random() * 1000)
30
const createMessage = num => ({
31
key: `key-${num}`,
32
value: `value-${num}-${new Date().toISOString()}`,
0 commit comments