refactor(truncation): effectify TruncateService, delete Scheduler (#17957)
This commit is contained in:
parent
4b4dd2b882
commit
5dfe86dcb1
1 changed files with 406 additions and 483 deletions
|
|
@ -10,8 +10,6 @@ import { Instance } from "./instance"
|
|||
import { VcsService } from "./vcs"
|
||||
import { Log } from "@/util/log"
|
||||
import { ShareNext } from "@/share/share-next"
|
||||
import { Snapshot } from "../snapshot"
|
||||
import { Truncate } from "../tool/truncation"
|
||||
import { runPromiseInstance } from "@/effect/runtime"
|
||||
|
||||
export async function InstanceBootstrap() {
|
||||
|
|
@ -23,8 +21,6 @@ export async function InstanceBootstrap() {
|
|||
await runPromiseInstance(FileWatcherService.use((service) => service.init()))
|
||||
File.init()
|
||||
await runPromiseInstance(VcsService.use((s) => s.init()))
|
||||
Snapshot.init()
|
||||
Truncate.init()
|
||||
|
||||
Bus.subscribe(Command.Event.Executed, async (payload) => {
|
||||
if (payload.properties.name === Command.Default.INIT) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue