mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-22 12:11:27 -07:00
fix: reuse background tokenization warmups
This commit is contained in:
@@ -35,6 +35,18 @@ export function createBuildStartBackgroundWarmupsMainDepsHandler(
|
||||
shouldWarmupJellyfinRemoteSession: () => deps.shouldWarmupJellyfinRemoteSession(),
|
||||
shouldAutoConnectJellyfinRemote: () => deps.shouldAutoConnectJellyfinRemote(),
|
||||
startJellyfinRemoteSession: () => deps.startJellyfinRemoteSession(),
|
||||
...(deps.onYomitanExtensionWarmupScheduled
|
||||
? {
|
||||
onYomitanExtensionWarmupScheduled: (promise: Promise<void>) =>
|
||||
deps.onYomitanExtensionWarmupScheduled!(promise),
|
||||
}
|
||||
: {}),
|
||||
...(deps.onTokenizationWarmupScheduled
|
||||
? {
|
||||
onTokenizationWarmupScheduled: (promise: Promise<void>) =>
|
||||
deps.onTokenizationWarmupScheduled!(promise),
|
||||
}
|
||||
: {}),
|
||||
logDebug: deps.logDebug,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user