Skip to content

Commit

Permalink
Adjust default build set to remove pprof from default distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokangwang committed Sep 6, 2024
1 parent 44a28de commit c5dcf1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion main/distro/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
// Developer preview features
_ "github.com/v2fly/v2ray-core/v5/app/instman"
_ "github.com/v2fly/v2ray-core/v5/app/observatory"
_ "github.com/v2fly/v2ray-core/v5/app/restfulapi"
_ "github.com/v2fly/v2ray-core/v5/app/tun"

// Inbound and outbound proxies.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package plugins
package plugin_pprof

import (
"github.com/v2fly/v2ray-core/v5/main/plugins"

Check failure on line 4 in main/plugins/plugin_pprof/plugin_pprof.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
"net/http"
"net/http/pprof"

Check failure on line 6 in main/plugins/plugin_pprof/plugin_pprof.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)

Check failure on line 7 in main/plugins/plugin_pprof/plugin_pprof.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed with -local github.com/v2fly/v2ray-core (goimports)
"github.com/v2fly/v2ray-core/v5/main/commands/base"
)

var pprofPlugin Plugin = func(cmd *base.Command) func() error {
var pprofPlugin plugins.Plugin = func(cmd *base.Command) func() error {
addr := cmd.Flag.String("pprof", "", "")
return func() error {
if *addr != "" {
Expand All @@ -24,5 +25,5 @@ var pprofPlugin Plugin = func(cmd *base.Command) func() error {
}

func init() {
RegisterPlugin(pprofPlugin)
plugins.RegisterPlugin(pprofPlugin)
}

0 comments on commit c5dcf1b

Please sign in to comment.