Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit ce85b6d

Browse files
bvwellsrghetia
authored andcommitted
Use stats.UnitDimensionless rather than deprecated stats.UnitNone (#1166)
1 parent 59d1ce3 commit ce85b6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/quickstart/stats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ var (
4545
mLatencyMs = stats.Float64("repl/latency", "The latency in milliseconds per REPL loop", stats.UnitMilliseconds)
4646

4747
// Counts the number of lines read in from standard input
48-
mLinesIn = stats.Int64("repl/lines_in", "The number of lines read in", stats.UnitNone)
48+
mLinesIn = stats.Int64("repl/lines_in", "The number of lines read in", stats.UnitDimensionless)
4949

5050
// Encounters the number of non EOF(end-of-file) errors.
51-
mErrors = stats.Int64("repl/errors", "The number of errors encountered", stats.UnitNone)
51+
mErrors = stats.Int64("repl/errors", "The number of errors encountered", stats.UnitDimensionless)
5252

5353
// Counts/groups the lengths of lines read in.
5454
mLineLengths = stats.Int64("repl/line_lengths", "The distribution of line lengths", stats.UnitBytes)

0 commit comments

Comments
 (0)