move import to top

This commit is contained in:
Daniel Lugo 2020-05-30 16:26:57 -04:00
parent c75e0902f8
commit f1e5f3d04a

View file

@ -33,6 +33,8 @@ module.exports = async (
mySocketsEvents, mySocketsEvents,
{ serverPort, CA, CA_KEY, usetls } { serverPort, CA, CA_KEY, usetls }
) => { ) => {
const {timeout5} = require('../services/gunDB/contact-api/utils')
const Http = Axios.create({ const Http = Axios.create({
httpsAgent: new httpsAgent.Agent({ httpsAgent: new httpsAgent.Agent({
ca: await FS.readFile(CA) ca: await FS.readFile(CA)
@ -1675,7 +1677,6 @@ module.exports = async (
res.json(channelBackups); res.json(channelBackups);
}); });
}); });
const {timeout5} = require('../services/gunDB/contact-api/utils')
const GunEvent = Common.Constants.Event const GunEvent = Common.Constants.Event
const Key = require('../services/gunDB/contact-api/key') const Key = require('../services/gunDB/contact-api/key')
@ -1707,7 +1708,7 @@ module.exports = async (
}) })
const Events = require('../services/gunDB/contact-api/events') const Events = require('../services/gunDB/contact-api/events')
app.get(`/api/gun/${GunEvent.ON_RECEIVED_REQUESTS}`, (_, res) => { app.get(`/api/gun/${GunEvent.ON_RECEIVED_REQUESTS}`, (_, res) => {
try { try {
// spinup // spinup