mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
fixing mem.pprof issue: (#2198)
parsing profile: concatenated profiles detected fixing web service not start profile issue fixing no default profile options issue
This commit is contained in:
@ -12,6 +12,8 @@ import (
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
"github.com/asim/go-micro/v3/config"
|
||||
"github.com/asim/go-micro/v3/debug/profile"
|
||||
"github.com/asim/go-micro/v3/debug/profile/http"
|
||||
"github.com/asim/go-micro/v3/debug/profile/pprof"
|
||||
"github.com/asim/go-micro/v3/debug/trace"
|
||||
"github.com/asim/go-micro/v3/logger"
|
||||
"github.com/asim/go-micro/v3/registry"
|
||||
@ -257,7 +259,10 @@ var (
|
||||
|
||||
DefaultAuths = map[string]func(...auth.Option) auth.Auth{}
|
||||
|
||||
DefaultProfiles = map[string]func(...profile.Option) profile.Profile{}
|
||||
DefaultProfiles = map[string]func(...profile.Option) profile.Profile{
|
||||
"http": http.NewProfile,
|
||||
"pprof": pprof.NewProfile,
|
||||
}
|
||||
|
||||
DefaultConfigs = map[string]func(...config.Option) (config.Config, error){}
|
||||
)
|
||||
|
Reference in New Issue
Block a user