feat[Go]: resuming transmission from the point of interruption during data source synchronisation (#18176)

### Summary

As title
This commit is contained in:
Haruko386
2026-08-13 18:38:37 +08:00
committed by GitHub
parent 0784bef5b0
commit 96f7c39753
35 changed files with 2464 additions and 469 deletions
+5 -8
View File
@@ -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" +