chore: 🎨 format

This commit is contained in:
ThatOneCalculator 2023-09-03 14:06:30 -07:00
parent 738502f051
commit 5acb6c449d
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 9 additions and 3 deletions

View File

@ -23,7 +23,7 @@ export default async function () {
process.env.mode && ["web", "queue"].includes(process.env.mode) process.env.mode && ["web", "queue"].includes(process.env.mode)
? `(${process.env.mode})` ? `(${process.env.mode})`
: ""; : "";
const type = cluster.isPrimary ? "(master)" : "(worker)" const type = cluster.isPrimary ? "(master)" : "(worker)";
process.title = `Firefish ${mode} ${type}`; process.title = `Firefish ${mode} ${type}`;
if (cluster.isPrimary || envOption.disableClustering) { if (cluster.isPrimary || envOption.disableClustering) {

View File

@ -214,7 +214,9 @@ async function spawnWorkers(
workers.fill("web", 0, clusterLimits?.web); workers.fill("web", 0, clusterLimits?.web);
workers.fill("queue", clusterLimits?.web); workers.fill("queue", clusterLimits?.web);
bootLogger.info(`Starting ${clusterLimits?.web} web workers and ${clusterLimits?.queue} queue workers (total ${total})...`); bootLogger.info(
`Starting ${clusterLimits?.web} web workers and ${clusterLimits?.queue} queue workers (total ${total})...`,
);
await Promise.all(workers.map((mode) => spawnWorker(mode))); await Promise.all(workers.map((mode) => spawnWorker(mode)));
bootLogger.succ("All workers started"); bootLogger.succ("All workers started");
} }

View File

@ -57,7 +57,11 @@
><i class="ph-image-square ph-bold ph-lg icon"></i ><i class="ph-image-square ph-bold ph-lg icon"></i
>{{ i18n.ts.gallery }}</MkA >{{ i18n.ts.gallery }}</MkA
> >
<button class="_button link" active-class="active" @click="search()"> <button
class="_button link"
active-class="active"
@click="search()"
>
<i class="ph-magnifying-glass ph-bold ph-lg icon"></i <i class="ph-magnifying-glass ph-bold ph-lg icon"></i
><span>{{ i18n.ts.search }}</span> ><span>{{ i18n.ts.search }}</span>
</button> </button>