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"
|
||||
"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
|
||||
|
|
|
|||
Loading…
Reference in New Issue