This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { kafka } from "./client"; | |
async function init() { | |
const admin = kafka.admin(); | |
console.log("Admin connecting..."); | |
await admin.connect(); | |
console.log("Admin connected"); | |
console.log("Creating topics..."); | |
await admin.createTopics({ |