fix(examples): rename config to cfg in blog (#1122)

pull/1125/head
包子 3 years ago committed by GitHub
parent 725d60134c
commit 493c11929f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      examples/blog/cmd/blog/main.go

@ -71,17 +71,17 @@ func main() {
flag.Parse()
logger := log.NewStdLogger(os.Stdout)
config := config.New(
cfg := config.New(
config.WithSource(
file.NewSource(flagconf),
),
)
if err := config.Load(); err != nil {
if err := cfg.Load(); err != nil {
panic(err)
}
var bc conf.Bootstrap
if err := config.Scan(&bc); err != nil {
if err := cfg.Scan(&bc); err != nil {
panic(err)
}
tp, err := tracerProvider(bc.Trace.Endpoint)

Loading…
Cancel
Save