Skip to content
Snippets Groups Projects
Commit c1e9b842 authored by xg.gao's avatar xg.gao
Browse files

format

parent 6707cdc3
No related branches found
No related tags found
No related merge requests found
...@@ -141,8 +141,8 @@ func loadConsumerConfig() { ...@@ -141,8 +141,8 @@ func loadConsumerConfig() {
// wait for invoker is available, if wait over default 3s, then panic // wait for invoker is available, if wait over default 3s, then panic
var count int var count int
checkok := true
for { for {
checkok := true
for _, refconfig := range consumerConfig.References { for _, refconfig := range consumerConfig.References {
if (refconfig.Check != nil && *refconfig.Check) || if (refconfig.Check != nil && *refconfig.Check) ||
(refconfig.Check == nil && consumerConfig.Check != nil && *consumerConfig.Check) || (refconfig.Check == nil && consumerConfig.Check != nil && *consumerConfig.Check) ||
...@@ -167,7 +167,6 @@ func loadConsumerConfig() { ...@@ -167,7 +167,6 @@ func loadConsumerConfig() {
if checkok { if checkok {
break break
} }
checkok = true
} }
} }
......
...@@ -48,7 +48,6 @@ func NewMetadataServiceExporter(metadataService service.MetadataService) exporte ...@@ -48,7 +48,6 @@ func NewMetadataServiceExporter(metadataService service.MetadataService) exporte
// Export will export the metadataService // Export will export the metadataService
func (exporter *MetadataServiceExporter) Export() error { func (exporter *MetadataServiceExporter) Export() error {
if !exporter.IsExported() { if !exporter.IsExported() {
serviceConfig := config.NewServiceConfig(constant.SIMPLE_METADATA_SERVICE_NAME, context.Background()) serviceConfig := config.NewServiceConfig(constant.SIMPLE_METADATA_SERVICE_NAME, context.Background())
serviceConfig.Protocol = constant.DEFAULT_PROTOCOL serviceConfig.Protocol = constant.DEFAULT_PROTOCOL
serviceConfig.Protocols = map[string]*config.ProtocolConfig{ serviceConfig.Protocols = map[string]*config.ProtocolConfig{
......
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