mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 12:05:46 +00:00
update metrics usage
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ func main() {
|
||||
}
|
||||
|
||||
if cfg.Metrics != nil {
|
||||
metrics.SetGlobal(xmetrics.NewMetrics())
|
||||
metrics.Init(xmetrics.NewMetrics())
|
||||
if cfg.Metrics.Addr != "" {
|
||||
s, err := buildMetricsService(cfg.Metrics)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user