Skip to content

Commit

Permalink
Removed sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr committed Dec 27, 2018
1 parent 3c081e4 commit 248b9c0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dgraph/cmd/debug/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"math"
"strconv"
"strings"
"time"

"github.com/dgraph-io/badger"
"github.com/dgraph-io/badger/options"
Expand Down Expand Up @@ -623,11 +622,6 @@ func sizeHistogram(db *badger.DB) {
loop++
}

// Sleep for a bit to ensure that the data is properly aggregated before
// printing.
sleepDuration, _ := time.ParseDuration("500ms")
time.Sleep(sleepDuration)

fmt.Printf("prefix = %s\n", hex.Dump(prefix))
fmt.Printf("Found %d keys\n", loop)
fmt.Printf("\nHistogram of key sizes (in bytes)\n")
Expand Down

0 comments on commit 248b9c0

Please sign in to comment.