Chore: minor rename

This commit is contained in:
xjasonlyu
2022-03-29 14:12:25 +08:00
parent 201e79ac71
commit 20fe2e4cd8
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ import (
const defaultInterval = 1000
func init() {
addMountPoint("/connections", connectionRouter())
registerMountPoint("/connections", connectionRouter())
}
func connectionRouter() http.Handler {

View File

@@ -10,7 +10,7 @@ import (
)
func init() {
addMountPoint("/debug/pprof/", pprofRouter())
registerMountPoint("/debug/pprof/", pprofRouter())
}
func pprofRouter() http.Handler {

View File

@@ -28,7 +28,7 @@ var (
_mountPoints = make(map[string]http.Handler)
)
func addMountPoint(pattern string, handler http.Handler) {
func registerMountPoint(pattern string, handler http.Handler) {
_mountPoints[pattern] = handler
}