From c7dd1cfc2edbb1dbb5646b468697daf36f3bc32f Mon Sep 17 00:00:00 2001 From: alikia2x Date: Mon, 14 Apr 2025 05:21:06 +0800 Subject: [PATCH] improve: unused imports in snapshotTick.ts --- packages/crawler/mq/exec/snapshotTick.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/crawler/mq/exec/snapshotTick.ts b/packages/crawler/mq/exec/snapshotTick.ts index d7f774b..5465f52 100644 --- a/packages/crawler/mq/exec/snapshotTick.ts +++ b/packages/crawler/mq/exec/snapshotTick.ts @@ -1,25 +1,21 @@ import { Job } from "bullmq"; import { db } from "db/init.ts"; -import { getLatestVideoSnapshot, getVideosNearMilestone } from "db/snapshot.ts"; import { bulkGetVideosWithoutProcessingSchedules, bulkSetSnapshotStatus, getBulkSnapshotsInNextSecond, getSnapshotsInNextSecond, - getVideosWithoutActiveSnapshotSchedule, scheduleSnapshot, setSnapshotStatus, snapshotScheduleExists, videoHasProcessingSchedule, } from "db/snapshotSchedule.ts"; -import { HOUR, MINUTE, SECOND, WEEK } from "@std/datetime"; +import { HOUR, MINUTE, SECOND } from "@std/datetime"; import logger from "log/logger.ts"; import { SnapshotQueue } from "mq/index.ts"; import { insertVideoSnapshot } from "mq/task/getVideoStats.ts"; import { NetSchedulerError } from "@core/net/delegate.ts"; import { getBiliVideoStatus, setBiliVideoStatus } from "db/allData.ts"; -import { truncate } from "utils/truncate.ts"; -import { lockManager } from "mq/lockManager.ts"; import { getSongsPublihsedAt } from "db/songs.ts"; import { getAdjustedShortTermETA } from "../scheduling.ts"; import { getRegularSnapshotInterval } from "../task/regularSnapshotInterval.ts";