From 10aa5ae181836796c674d10f2d3b6e011ca83d8b Mon Sep 17 00:00:00 2001 From: denis-tingaikin Date: Mon, 22 Jul 2024 21:20:19 +0300 Subject: [PATCH] tmp fix for vpp metrics server Signed-off-by: denis-tingaikin --- pkg/networkservice/metrics/server.go | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/pkg/networkservice/metrics/server.go b/pkg/networkservice/metrics/server.go index 40ba0272..c2f8651d 100644 --- a/pkg/networkservice/metrics/server.go +++ b/pkg/networkservice/metrics/server.go @@ -25,21 +25,10 @@ import ( "go.fd.io/govpp/api" "github.com/networkservicemesh/api/pkg/api/networkservice" - "github.com/networkservicemesh/sdk/pkg/networkservice/core/chain" - - "github.com/networkservicemesh/sdk-vpp/pkg/networkservice/metrics/ifacename" - "github.com/networkservicemesh/sdk-vpp/pkg/networkservice/metrics/stats" + "github.com/networkservicemesh/sdk/pkg/networkservice/common/null" ) // NewServer provides NetworkServiceServer chain elements that retrieve vpp interface statistics and names. -func NewServer(ctx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceServer { - opts := &metricsOptions{} - for _, opt := range options { - opt(opts) - } - - return chain.NewNetworkServiceServer( - stats.NewServer(ctx, stats.WithSocket(opts.socket)), - ifacename.NewServer(ctx, vppConn, ifacename.WithSocket(opts.socket)), - ) +func NewServer(_ context.Context, _ api.Connection, _ ...Option) networkservice.NetworkServiceServer { + return null.NewServer() }