You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2022/11/11 15:18:55 UTC
[flink] branch master updated: [hotfix][docs][metrics] Fix Scala syntax
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new f09e939b5c6 [hotfix][docs][metrics] Fix Scala syntax
f09e939b5c6 is described below
commit f09e939b5c6a68460f6f1dc47ec50a456d972e5a
Author: yiksanchan <ev...@gmail.com>
AuthorDate: Fri Nov 11 23:18:42 2022 +0800
[hotfix][docs][metrics] Fix Scala syntax
---
docs/content.zh/docs/ops/metrics.md | 2 +-
docs/content/docs/ops/metrics.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/content.zh/docs/ops/metrics.md b/docs/content.zh/docs/ops/metrics.md
index 17d26de9dca..9c25e8872dc 100644
--- a/docs/content.zh/docs/ops/metrics.md
+++ b/docs/content.zh/docs/ops/metrics.md
@@ -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()
diff --git a/docs/content/docs/ops/metrics.md b/docs/content/docs/ops/metrics.md
index 2748addaf8d..acffa88b10a 100644
--- a/docs/content/docs/ops/metrics.md
+++ b/docs/content/docs/ops/metrics.md
@@ -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()