Skip to content

Commit

Permalink
feat: removing fake pub temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Dec 26, 2023
1 parent f6c5093 commit da92e0b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/network/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import debug from 'debug'

import { dbConnection, firebaseConnection } from 'database'
import { MAIN_TOPIC } from 'utils'
import { getClient, start as startMqtt } from './mqtt'
import { /* getClient, */ start as startMqtt } from './mqtt'
import { socketConnection } from './socket'

const namespace = `${MAIN_TOPIC}:Mqtt:Server`
Expand All @@ -15,13 +15,13 @@ const start = async () => {
await dbConnection(serverDebug).connect()
})

if (process.env.NODE_ENV !== 'local') {
const jobs = await import('../jobs')
// if (process.env.NODE_ENV !== 'local') {
// const jobs = await import('../jobs')

;(Object.keys(jobs) as (keyof typeof jobs)[]).forEach(job => {
jobs[job](getClient(serverDebug))
})
}
// ;(Object.keys(jobs) as (keyof typeof jobs)[]).forEach(job => {
// jobs[job](getClient(serverDebug))
// })
// }
}

export { start }

0 comments on commit da92e0b

Please sign in to comment.