chore: fix ChunkExtracter typo (ChunkExtractor)

main
ChenRussell 2026-02-06 11:55:46 +08:00 committed by lyingbug
parent 5fda6bc266
commit 0bf55dd8f7
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ type AsynqTaskParams struct {
KnowledgeService interfaces.KnowledgeService
KnowledgeBaseService interfaces.KnowledgeBaseService
TagService interfaces.KnowledgeTagService
ChunkExtracter interfaces.TaskHandler `name:"chunkExtracter"`
ChunkExtractor interfaces.TaskHandler `name:"chunkExtractor"`
DataTableSummary interfaces.TaskHandler `name:"dataTableSummary"`
}
@ -70,7 +70,7 @@ func RunAsynqServer(params AsynqTaskParams) *asynq.ServeMux {
mux := asynq.NewServeMux()
// Register extract handlers - router will dispatch to appropriate handler
mux.HandleFunc(types.TypeChunkExtract, params.ChunkExtracter.Handle)
mux.HandleFunc(types.TypeChunkExtract, params.ChunkExtractor.Handle)
mux.HandleFunc(types.TypeDataTableSummary, params.DataTableSummary.Handle)
// Register document processing handler