mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: Decouple cloud sync from telemetry (#343)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user