just optimize typo in internal/conf package

pull/351/head
Michael Li 2 years ago
parent 2081b4e197
commit de7368817a
No known key found for this signature in database

@ -18,7 +18,7 @@ import (
) )
//go:embed config.yaml //go:embed config.yaml
var fileBytes []byte var configBytes []byte
type pyroscopeConf struct { type pyroscopeConf struct {
AppName string AppName string
@ -379,7 +379,7 @@ func newViper() (*viper.Viper, error) {
vp.AddConfigPath(".") vp.AddConfigPath(".")
vp.AddConfigPath("custom/") vp.AddConfigPath("custom/")
vp.SetConfigType("yaml") vp.SetConfigType("yaml")
err := vp.ReadConfig(bytes.NewReader(fileBytes)) err := vp.ReadConfig(bytes.NewReader(configBytes))
if err != nil { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save