🐛 Fix main file

This commit is contained in:
LittleSheep 2024-12-25 23:54:54 +08:00
parent 66ee6c37f2
commit 5bbf13b01e

View File

@ -2,13 +2,14 @@ package main
import ( import (
"fmt" "fmt"
"os"
"os/signal"
"syscall"
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
pkg "git.solsynth.dev/hypernet/paperclip/pkg/internal" pkg "git.solsynth.dev/hypernet/paperclip/pkg/internal"
"git.solsynth.dev/hypernet/paperclip/pkg/internal/gap" "git.solsynth.dev/hypernet/paperclip/pkg/internal/gap"
"github.com/fatih/color" "github.com/fatih/color"
"os"
"os/signal"
"syscall"
"git.solsynth.dev/hypernet/paperclip/pkg/internal/cache" "git.solsynth.dev/hypernet/paperclip/pkg/internal/cache"
"git.solsynth.dev/hypernet/paperclip/pkg/internal/database" "git.solsynth.dev/hypernet/paperclip/pkg/internal/database"
@ -72,9 +73,6 @@ func main() {
} }
// Set up some workers // Set up some workers
for idx := 0; idx < viper.GetInt("workers.files_deletion"); idx++ {
go services.StartConsumeDeletionTask()
}
for idx := 0; idx < viper.GetInt("workers.files_analyze"); idx++ { for idx := 0; idx < viper.GetInt("workers.files_analyze"); idx++ {
go services.StartConsumeAnalyzeTask() go services.StartConsumeAnalyzeTask()
} }