From 014e770c1deb69c6fc3f530edfa8a757856f8b02 Mon Sep 17 00:00:00 2001 From: jueli12 Date: Mon, 29 Jul 2024 23:11:55 +0800 Subject: [PATCH] fix: format server.go --- cmd/app/server.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/app/server.go b/cmd/app/server.go index a303b70f..d3540930 100644 --- a/cmd/app/server.go +++ b/cmd/app/server.go @@ -29,8 +29,8 @@ import ( "github.com/KusionStack/karpor/pkg/kubernetes/registry" "github.com/KusionStack/karpor/pkg/kubernetes/scheme" "github.com/KusionStack/karpor/pkg/server" - "github.com/KusionStack/karpor/pkg/version" proxyutil "github.com/KusionStack/karpor/pkg/util/proxy" + "github.com/KusionStack/karpor/pkg/version" "github.com/spf13/cobra" "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/runtime/schema" @@ -101,11 +101,10 @@ func NewServerCommand(ctx context.Context) *cobra.Command { })) expvar.Publish("Version", expvar.Func(func() interface{} { return version.GetVersion() - })) - expvar.Publish("AIOptions", expvar.Func(func() interface{} { + })) + expvar.Publish("AIOptions", expvar.Func(func() interface{} { return o.AIOptions - })) - + })) cmd := &cobra.Command{ Use: "karpor",