Added shuffle stats disabled to make it skip that

This commit is contained in:
Frikky
2023-12-19 00:05:51 +01:00
parent 6d7756b093
commit f2a3c64563
+5
View File
@@ -1039,6 +1039,11 @@ func getOrborusStats(ctx context.Context) shuffle.OrborusStats {
Timestamp: time.Now().Unix(),
}
// Disable orborus stats
if os.Getenv("SHUFFLE_STATS_DISABLED") == "true" {
return newStats
}
if swarmConfig == "run" || swarmConfig == "swarm" {
newStats.Swarm = true
}