INNER CODE UNIT · JavaScript

NO_CONTROLLER_ID

tulios/kafkajs · src/admin/index.js:25

const NO_CONTROLLER_ID = -1

const { values, keys, entries } = Object
const eventNames = values(events)
const eventKeys = keys(events)
  .map(key => `admin.events.${key}`)
  .join(', ')

const retryOnLeaderNotAvailable = (fn, opts = {}) => {
  const callback = async () => {
    try {
      return await fn()
    } catch (e) {
      if (e.type !== 'LEADER_NOT_AVAILABLE') {
        throw e
      }
      return false
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…