Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/keyserver.js
Show All 19 Lines | |||||
import landingHandler from './responders/landing-handler.js'; | import landingHandler from './responders/landing-handler.js'; | ||||
import { errorReportDownloadResponder } from './responders/report-responders.js'; | import { errorReportDownloadResponder } from './responders/report-responders.js'; | ||||
import { | import { | ||||
inviteResponder, | inviteResponder, | ||||
websiteResponder, | websiteResponder, | ||||
} from './responders/website-responders.js'; | } from './responders/website-responders.js'; | ||||
import { webWorkerResponder } from './responders/webworker-responders.js'; | import { webWorkerResponder } from './responders/webworker-responders.js'; | ||||
import { onConnection } from './socket/socket.js'; | import { onConnection } from './socket/socket.js'; | ||||
import { createTunnelbrokerWebsocket } from './socket/tunnelbroker.js'; | |||||
import { | import { | ||||
multerProcessor, | multerProcessor, | ||||
multimediaUploadResponder, | multimediaUploadResponder, | ||||
uploadDownloadResponder, | uploadDownloadResponder, | ||||
} from './uploads/uploads.js'; | } from './uploads/uploads.js'; | ||||
import { initENSCache } from './utils/ens-cache.js'; | import { initENSCache } from './utils/ens-cache.js'; | ||||
import { | import { | ||||
prefetchAllURLFacts, | prefetchAllURLFacts, | ||||
Show All 22 Lines | if (!didMigrationsSucceed) { | ||||
// in https://github.com/remy/nodemon/issues/751 | // in https://github.com/remy/nodemon/issues/751 | ||||
process.exit(2); | process.exit(2); | ||||
} | } | ||||
const cpuCount = os.cpus().length; | const cpuCount = os.cpus().length; | ||||
for (let i = 0; i < cpuCount; i++) { | for (let i = 0; i < cpuCount; i++) { | ||||
cluster.fork(); | cluster.fork(); | ||||
} | } | ||||
cluster.on('exit', () => cluster.fork()); | cluster.on('exit', () => cluster.fork()); | ||||
createTunnelbrokerWebsocket(); | |||||
jon: Do you mind if I just remove this call, and just build up the tunnelbroker support in the… | |||||
ashoatUnsubmitted Done Inline ActionsFollowing our chat on Comm, is this still the plan? Let me know if so, otherwise passing back to you ashoat: Following our chat on Comm, is this still the plan? Let me know if so, otherwise passing back… | |||||
jonUnsubmitted Done Inline ActionsRefactored out the blocking tunnelbroker work to avoid iterating through the JS commits as much. For clarity, the plan is now to progress is to land the whole stack once it's in a good spot. jon: Refactored out the blocking tunnelbroker work to avoid iterating through the JS commits as much. | |||||
} else { | } else { | ||||
const server = express(); | const server = express(); | ||||
expressWs(server); | expressWs(server); | ||||
server.use(express.json({ limit: '250mb' })); | server.use(express.json({ limit: '250mb' })); | ||||
server.use(cookieParser()); | server.use(cookieParser()); | ||||
const setupAppRouter = router => { | const setupAppRouter = router => { | ||||
router.use('/images', express.static('images')); | router.use('/images', express.static('images')); | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |
Do you mind if I just remove this call, and just build up the tunnelbroker support in the related tunnelbroker.js and types file?
Would like to make some forward momentum, as constantly squashing the work will make for one large singular diff.