mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-08 10:14:35 +08:00
feat[Go]: resuming transmission from the point of interruption during data source synchronisation (#18176)
### Summary As title
This commit is contained in:
@@ -633,15 +633,12 @@ func runIngestor(ctx context.Context, cancel context.CancelFunc, args *serverArg
|
||||
func runSyncer(ctx context.Context, cancel context.CancelFunc, args *serverArgs) error {
|
||||
globalConfig := server.GetConfig()
|
||||
syncerConfig := globalConfig.GetSyncerConfig()
|
||||
fileSyncer := syncer.NewSyncer(syncerConfig.MaxConcurrentSyncs, time.Duration(syncerConfig.SyncInterval)*time.Second)
|
||||
fileSyncer := syncer.NewSyncer(syncerConfig.MaxConcurrentSyncs)
|
||||
|
||||
go func() {
|
||||
err := fileSyncer.Start()
|
||||
if err != nil {
|
||||
common.Error("Failed to initialize file syncer", err)
|
||||
return
|
||||
}
|
||||
}()
|
||||
if err := fileSyncer.StartContext(ctx); err != nil {
|
||||
common.Error("Failed to initialize file syncer", err)
|
||||
return err
|
||||
}
|
||||
|
||||
common.Info("\n _______ __ _____\n" +
|
||||
" / ____(_) /__ / ___/__ ______ ________ _____\n" +
|
||||
|
||||
Reference in New Issue
Block a user