diff --git a/src/router.js b/src/router.js index 85cd7f7..24d541c 100644 --- a/src/router.js +++ b/src/router.js @@ -1,4 +1,5 @@ -const { controller, status } = require('./contollers') +const controller = require('./controller') +const status = require('./status') const router = require('express').Router() // Add CORS headers diff --git a/src/status.js b/src/status.js index ca8d1fe..88b8936 100644 --- a/src/status.js +++ b/src/status.js @@ -1,9 +1,8 @@ const queue = require('./queue') -const { netId, tornadoServiceFee, instances, redisUrl, rewardAccount } = require('./config') +const { netId, tornadoServiceFee, instances, rewardAccount } = require('./config') const { version } = require('../package.json') -const Redis = require('ioredis') const { readRelayerErrors } = require('./utils') -const redis = new Redis(redisUrl) +const { redis } = require('./modules/redis') async function status(req, res) { const health = await redis.hgetall('health')