Skip to content

Commit

Permalink
Reduce timeouth length between iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
geertw committed Sep 5, 2023
1 parent 65faee0 commit db2b050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ func DumpServicesStops(db *sql.DB, csvFile *os.File, gzipCompression bool, start
progress := fmt.Sprintf("%.2f", progressNumber)
log.WithFields(log.Fields{"services": serviceCounter, "stops": stopCounter, "progress": progress}).Info("Dumping...")

// Take 1s timeout to prevent host from getting overloaded:
time.Sleep(1 * time.Second)
// Take .2s timeout to prevent host from getting overloaded:
time.Sleep(200 * time.Millisecond)

// flush csv
w.Flush()
Expand Down

0 comments on commit db2b050

Please sign in to comment.