Skip to content
Snippets Groups Projects
Commit 178cf968 authored by vito.he's avatar vito.he
Browse files

Mod:timeout clear & only registry url used timeout in params

parent 9afa5899
No related branches found
No related tags found
No related merge requests found
......@@ -87,11 +87,11 @@ func consumerInit(confConFile string) error {
return fmt.Errorf("yaml.Unmarshal() = error:%s", jerrors.ErrorStack(err))
}
//动态加载service config end
for _, config := range consumerConfig.Registries {
if config.Timeout, err = time.ParseDuration(config.TimeoutStr); err != nil {
return fmt.Errorf("time.ParseDuration(Registry_Config.Timeout:%#v) = error:%s", config.TimeoutStr, err)
}
}
//for _, config := range consumerConfig.Registries {
// if config.Timeout, err = time.ParseDuration(config.TimeoutStr); err != nil {
// return fmt.Errorf("time.ParseDuration(Registry_Config.Timeout:%#v) = error:%s", config.TimeoutStr, err)
// }
//}
gxlog.CInfo("consumer config{%#v}\n", consumerConfig)
return nil
......@@ -178,7 +178,6 @@ func GetProviderConfig() ProviderConfig {
return *providerConfig
}
type ProtocolConfig struct {
name string `required:"true" yaml:"name" json:"name,omitempty"`
ip string `required:"true" yaml:"ip" json:"ip,omitempty"`
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment