From b44fe1b7dd838d823fd06000120ee9e6b82d0d03 Mon Sep 17 00:00:00 2001
From: flycash <flycash@apache.org>
Date: Fri, 31 Jan 2020 13:11:00 +0800
Subject: [PATCH] fmt comments

---
 common/extension/metrics.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/extension/metrics.go b/common/extension/metrics.go
index e7695c763..42fca7a2d 100644
--- a/common/extension/metrics.go
+++ b/common/extension/metrics.go
@@ -27,12 +27,12 @@ var (
 	metricReporterMap = make(map[string]func() metrics.Reporter, 4)
 )
 
-// set a reporter with the name
+// SetMetricReporter set a reporter with the name
 func SetMetricReporter(name string, reporterFunc func() metrics.Reporter) {
 	metricReporterMap[name] = reporterFunc
 }
 
-// find the reporter with name.
+// GetMetricReporter find the reporter with name.
 // if not found, it will panic.
 // we should know that this method usually is called when system starts, so we should panic
 func GetMetricReporter(name string) metrics.Reporter {
-- 
GitLab