Update
This commit is contained in:
parent
ecf721aac1
commit
a9d05bdd84
|
@ -8,7 +8,6 @@ import express from "express";
|
||||||
import { createServer } from "http";
|
import { createServer } from "http";
|
||||||
import compression from "compression";
|
import compression from "compression";
|
||||||
import WebSocket from "ws";
|
import WebSocket from "ws";
|
||||||
import { LRUCache } from "lru-cache";
|
|
||||||
import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
|
import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
|
||||||
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
||||||
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
||||||
|
@ -63,12 +62,6 @@ if (global.gc) {
|
||||||
import './others/scaler.mjs';
|
import './others/scaler.mjs';
|
||||||
import './others/warmup.mjs';
|
import './others/warmup.mjs';
|
||||||
|
|
||||||
const cache = new LRUCache({
|
|
||||||
max: 1000,
|
|
||||||
ttl: 4 * 24 * 60 * 60 * 1000,
|
|
||||||
allowStale: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
const port = parseInt(process.env.PORT || "3000", 10);
|
const port = parseInt(process.env.PORT || "3000", 10);
|
||||||
|
|
||||||
function logInfo(msg) { console.info(`[~] ${msg}`); }
|
function logInfo(msg) { console.info(`[~] ${msg}`); }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user