Inserito un delay casuale per poter far partire tante istanze senza essere bloccati da binance.
parent
e3fbf65ad6
commit
9e7607a899
6
main.go
6
main.go
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"math"
|
"math"
|
||||||
|
"math/rand"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
@ -159,7 +160,10 @@ func main() {
|
||||||
log.SetFlags(log.Ldate | log.Lmicroseconds)
|
log.SetFlags(log.Ldate | log.Lmicroseconds)
|
||||||
cfg := loadConfig()
|
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)
|
runOnce(cfg)
|
||||||
|
|
||||||
// poi ogni 24 ore
|
// poi ogni 24 ore
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue