mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 06:48:04 +03:00
14 lines
505 B
TypeScript
14 lines
505 B
TypeScript
import { CloseMongoConnection } from "external/mongo/db";
|
|
import { CloseRedisPubSub } from "external/redis/redis-IPC";
|
|
import { CloseRedisConnection } from "external/redis/redis";
|
|
import { CloseServerConnection } from "./mock-api";
|
|
import { CloseScoreImportQueue } from "lib/score-import/worker/queue";
|
|
|
|
export async function CloseAllConnections() {
|
|
await CloseMongoConnection();
|
|
await CloseServerConnection();
|
|
await CloseRedisConnection();
|
|
await CloseRedisPubSub();
|
|
await CloseScoreImportQueue();
|
|
}
|