chore: 🎨 format
This commit is contained in:
parent
738502f051
commit
5acb6c449d
3 changed files with 9 additions and 3 deletions
|
@ -23,7 +23,7 @@ export default async function () {
|
|||
process.env.mode && ["web", "queue"].includes(process.env.mode)
|
||||
? `(${process.env.mode})`
|
||||
: "";
|
||||
const type = cluster.isPrimary ? "(master)" : "(worker)"
|
||||
const type = cluster.isPrimary ? "(master)" : "(worker)";
|
||||
process.title = `Firefish ${mode} ${type}`;
|
||||
|
||||
if (cluster.isPrimary || envOption.disableClustering) {
|
||||
|
|
|
@ -214,7 +214,9 @@ async function spawnWorkers(
|
|||
workers.fill("web", 0, 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)));
|
||||
bootLogger.succ("All workers started");
|
||||
}
|
||||
|
|
|
@ -57,7 +57,11 @@
|
|||
><i class="ph-image-square ph-bold ph-lg icon"></i
|
||||
>{{ 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
|
||||
><span>{{ i18n.ts.search }}</span>
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue