Skip to content

Commit

Permalink
kvflowcontroller: fix TestLint/TestStaticCheck
Browse files Browse the repository at this point in the history
Started tripping in non-essential CI after cockroachdb#95905 with 'Nanoseconds is a
pure function but its return value is ignored (SA4017)'.

Release note: None
  • Loading branch information
irfansharif committed Feb 9, 2023
1 parent 0ab83da commit 7ba99e0
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ func TestUsingSimulation(t *testing.T) {
}
switch unit {
case "μs", "us", "microseconds":
time.Microsecond.Nanoseconds()
options = append(options, asciitsdb.WithDivisor(float64(time.Microsecond.Nanoseconds())) /* ns => μs conversion */)
case "ms", "milliseconds":
options = append(options, asciitsdb.WithDivisor(float64(time.Millisecond.Nanoseconds())) /* ns => μs conversion */)
Expand Down

0 comments on commit 7ba99e0

Please sign in to comment.