From 9e7607a899947ac87ffaed15375425836b038edc Mon Sep 17 00:00:00 2001 From: loweel Date: Mon, 27 Oct 2025 18:03:46 +0100 Subject: [PATCH] Inserito un delay casuale per poter far partire tante istanze senza essere bloccati da binance. --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 3c560df..5470b43 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "fmt" "log" "math" + "math/rand" "path/filepath" "strings" "time" @@ -159,7 +160,10 @@ func main() { log.SetFlags(log.Ldate | log.Lmicroseconds) cfg := loadConfig() - // esegui subito + // esegui + log.Printf("Aspettiamo un numero casuale di secondi per partire, cosi' non ci blacklistano.") + time.Sleep(time.Duration(rand.Intn(300)) * time.Second) + runOnce(cfg) // poi ogni 24 ore