Skip to content

Commit

Permalink
fix provider init error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuwan committed Mar 31, 2021
1 parent 7ff77bc commit 33e1908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func setDefaultValue(target interface{}) {
Address: "127.0.0.1:2181",
}
switch target.(type) {
case ProviderConfig:
case *ProviderConfig:
p := target.(*ProviderConfig)
if len(p.Registries) == 0 {
p.Registries["demoZK"] = registryConfig
Expand Down

0 comments on commit 33e1908

Please sign in to comment.