Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Aug 1, 2024
1 parent 921ffe5 commit a341bd6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions config/root_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package config

import (
"dubbo.apache.org/dubbo-go/v3/metadata/service"
"sync"
)

Expand Down Expand Up @@ -347,9 +348,16 @@ func (rb *RootConfigBuilder) Build() *RootConfig {
}

func exportMetadataService() {
ms, err := extension.GetLocalMetadataService(constant.DefaultKey)
msV1, err := extension.GetLocalMetadataServiceV1(constant.MetadataServiceV1)
msV2, err := extension.GetLocalMetadataServiceV2(constant.MetadataServiceV2)
var (
err error
ms service.MetadataService
msV1 service.MetadataServiceV1
msV2 service.MetadataServiceV2
)

ms, err = extension.GetLocalMetadataService(constant.DefaultKey)

Check failure on line 358 in config/root_config.go

View workflow job for this annotation

GitHub Actions / lint (1.20)

ineffectual assignment to err (ineffassign)
msV1, err = extension.GetLocalMetadataServiceV1(constant.MetadataServiceV1)
msV2, err = extension.GetLocalMetadataServiceV2(constant.MetadataServiceV2)
if err != nil {
logger.Warnf("could not init metadata service", err)
return
Expand Down

0 comments on commit a341bd6

Please sign in to comment.