fix: Decouple cloud sync from telemetry (#343)

This commit is contained in:
Abhisek Datta
2026-06-17 16:03:26 +05:30
committed by GitHub
parent baf637be97
commit 55f3f2a252
5 changed files with 10 additions and 31 deletions
-4
View File
@@ -6,7 +6,6 @@ import (
"github.com/safedep/dry/log"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/internal/analytics"
)
// SyncBackgroundSubcommand is the cobra `Use` of the hidden child command
@@ -48,9 +47,6 @@ func MaybeSpawnBackgroundSync(cfg *config.RuntimeConfig) {
if !cfg.Config.Cloud.Enabled || !cfg.Config.Cloud.AutoSync.Enabled {
return
}
if analytics.IsDisabled() {
return
}
if !SyncCooldownElapsed(cfg.CloudSyncLastRunPath(), cfg.Config.Cloud.AutoSync.MinInterval) {
log.Debugf("Auto-sync cooldown not elapsed; skipping spawn")