Skip to content
Snippets Groups Projects
Commit 12d9c82c authored by Patrick Wendell's avatar Patrick Wendell
Browse files

Small style fix

parent 37bc64a2
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
package spark.metrics
import com.codahale.metrics._
import com.codahale.metrics.{Metric, MetricFilter, MetricRegistry}
import java.util.Properties
import java.util.concurrent.TimeUnit
......@@ -95,7 +95,6 @@ private[spark] class MetricsSystem private (val instance: String) extends Loggin
def removeSource(source: Source) {
sources -= source
println("Removing source: " + source.sourceName)
registry.removeMatching(new MetricFilter {
def matches(name: String, metric: Metric): Boolean = name.startsWith(source.sourceName)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment