fix(config/apollo): rename func NewSouceWithConfig (#1425)

pull/1431/head
包子 3 years ago committed by GitHub
parent 906a9ead4f
commit fd9d324906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contrib/config/apollo/apollo.go
  2. 2
      examples/config/apollo/main.go

@ -71,7 +71,7 @@ func WithNamespace(name string) Option {
}
}
func NewSourceWithConfig(opts ...Option) config.Source {
func NewSource(opts ...Option) config.Source {
op := options{}
for _, o := range opts {
o(&op)

@ -10,7 +10,7 @@ import (
func main() {
c := config.New(
config.WithSource(
apollo.NewSourceWithConfig(
apollo.NewSource(
apollo.WithAppID("kratos"),
apollo.WithCluster("dev"),
apollo.WithEndpoint("http://localhost:8080"),

Loading…
Cancel
Save