Skip to content

Commit

Permalink
[hotfix][docs][metrics] Fix Scala syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
YikSanChan committed Nov 11, 2022
1 parent dd76844 commit f09e939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/ops/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class MyMapper extends RichMapFunction[Long, Long] {
@transient private var histogram: Histogram = _

override def open(config: Configuration): Unit = {
com.codahale.metrics.Histogram dropwizardHistogram =
val dropwizardHistogram =
new com.codahale.metrics.Histogram(new SlidingWindowReservoir(500))

histogram = getRuntimeContext()
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/ops/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class MyMapper extends RichMapFunction[Long, Long] {
@transient private var histogram: Histogram = _

override def open(config: Configuration): Unit = {
com.codahale.metrics.Histogram dropwizardHistogram =
val dropwizardHistogram =
new com.codahale.metrics.Histogram(new SlidingWindowReservoir(500))

histogram = getRuntimeContext()
Expand Down

0 comments on commit f09e939

Please sign in to comment.