update go.mod

This commit is contained in:
ginuerzh
2022-04-05 17:57:26 +08:00
parent 4b88c240f8
commit 7c91dfb56f
5 changed files with 9 additions and 12 deletions

View File

@ -5,12 +5,12 @@ import (
"os"
"github.com/go-gost/core/logger"
metrics "github.com/go-gost/core/metrics/service"
"github.com/go-gost/core/service"
"github.com/go-gost/x/api"
"github.com/go-gost/x/config"
"github.com/go-gost/x/config/parsing"
xlogger "github.com/go-gost/x/logger"
metrics "github.com/go-gost/x/metrics/service"
"github.com/go-gost/x/registry"
)

View File

@ -13,6 +13,7 @@ import (
"github.com/go-gost/x/config"
"github.com/go-gost/x/config/parsing"
xlogger "github.com/go-gost/x/logger"
xmetrics "github.com/go-gost/x/metrics"
)
var (
@ -118,7 +119,7 @@ func main() {
}
if cfg.Metrics != nil {
metrics.SetGlobal(metrics.NewMetrics())
metrics.SetGlobal(xmetrics.NewMetrics())
if cfg.Metrics.Addr != "" {
s, err := buildMetricsService(cfg.Metrics)
if err != nil {