Skip to content

Commit

Permalink
Merge 'build: goimports applied to entire code base' from Henrik
Browse files Browse the repository at this point in the history
"To avoid spurious diffs from auto formatting editors."

* origin/hj/go_fmt:
  build: goimports applied to entire code base
  • Loading branch information
penberg committed Mar 6, 2019
2 parents c81f967 + be07e94 commit 6b62ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/gemini/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ func Job(schema gemini.Schema, table gemini.Table, s *gemini.Session, p gemini.P
}
}

threadNum := p.Min/pkNumberPerThread
if i % 1000 == 0 && threadNum == rand.Intn(concurrency) {
threadNum := p.Min / pkNumberPerThread
if i%1000 == 0 && threadNum == rand.Intn(concurrency) {
fmt.Printf("thread %v: ", threadNum)
fmt.Println(testStatus)
}

if failFast && testStatus.ReadErrors > 0 {
break
}
Expand Down
4 changes: 2 additions & 2 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type PartitionRange struct {
}

func randRange(min int, max int) int {
return rand.Intn(max - min) + min
return rand.Intn(max-min) + min
}

func randString(len int) string {
Expand All @@ -64,7 +64,7 @@ func randDate() time.Time {
min := time.Date(1970, 1, 0, 0, 0, 0, 0, time.UTC).Unix()
max := time.Date(2019, 1, 0, 0, 0, 0, 0, time.UTC).Unix()

sec := rand.Int63n(max - min) + min
sec := rand.Int63n(max-min) + min
return time.Unix(sec, 0)
}

Expand Down

0 comments on commit 6b62ff1

Please sign in to comment.