🚧 different db engines

This commit is contained in:
Flam3rboy
2021-10-04 21:57:24 +02:00
parent e52e7ef0e1
commit b584af656d
11 changed files with 397 additions and 40 deletions

3
bundle/.gitignore vendored
View File

@@ -1 +1,2 @@
files/
files/
.env

BIN
bundle/package-lock.json generated

Binary file not shown.

View File

@@ -54,6 +54,7 @@
"@fosscord/gateway": "file:../gateway",
"@fosscord/util": "file:../util",
"async-exit-hook": "^2.0.1",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"missing-native-js-functions": "^1.2.15",
"node-os-utils": "^1.3.5",

View File

@@ -2,6 +2,8 @@
import cluster from "cluster";
import os from "os";
import { initStats } from "./stats";
import { config } from "dotenv";
config();
// TODO: add tcp socket event transmission
const cores = 1 || Number(process.env.threads) || os.cpus().length;

View File

@@ -5,7 +5,6 @@ export function initStats() {
console.log(`[Path] running in ${__dirname}`);
console.log(`[CPU] ${osu.cpu.model()} Cores x${osu.cpu.count()}`);
console.log(`[System] ${os.platform()} ${os.arch()}`);
console.log(`[Database] started`);
console.log(`[Process] running with pid: ${process.pid}`);
setInterval(async () => {