From 2e27c3d82972c4c5e3b5555a07643ae28f63f767 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 21 Jul 2022 23:38:23 +0300 Subject: [PATCH] metrics: move package to services Where it belongs. --- cli/server/server.go | 4 ++-- pkg/{network => services}/metrics/metrics.go | 0 pkg/{network => services}/metrics/pprof.go | 0 pkg/{network => services}/metrics/prometheus.go | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename pkg/{network => services}/metrics/metrics.go (100%) rename pkg/{network => services}/metrics/pprof.go (100%) rename pkg/{network => services}/metrics/prometheus.go (100%) diff --git a/cli/server/server.go b/cli/server/server.go index 64246094d..c772e1927 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -21,10 +21,10 @@ import ( "github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/network/metrics" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv" + "github.com/nspcc-dev/neo-go/pkg/services/metrics" "github.com/nspcc-dev/neo-go/pkg/services/notary" "github.com/nspcc-dev/neo-go/pkg/services/oracle" + "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv" "github.com/nspcc-dev/neo-go/pkg/services/stateroot" "github.com/urfave/cli" "go.uber.org/zap" diff --git a/pkg/network/metrics/metrics.go b/pkg/services/metrics/metrics.go similarity index 100% rename from pkg/network/metrics/metrics.go rename to pkg/services/metrics/metrics.go diff --git a/pkg/network/metrics/pprof.go b/pkg/services/metrics/pprof.go similarity index 100% rename from pkg/network/metrics/pprof.go rename to pkg/services/metrics/pprof.go diff --git a/pkg/network/metrics/prometheus.go b/pkg/services/metrics/prometheus.go similarity index 100% rename from pkg/network/metrics/prometheus.go rename to pkg/services/metrics/prometheus.go