Skip to content

Commit

Permalink
fix invoker (#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalT authored Dec 8, 2023
1 parent ffb8b76 commit 90e7f69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (s *ServiceConfig) Export() error {
logger.Warnf("SetMetadataServiceURL error = %s", err)
}
}
s.generatorInvoker(ivkURL, info)
invoker = s.generatorInvoker(ivkURL, info)
exporter := extension.GetProtocol(protocolwrapper.FILTER).Export(invoker)
if exporter == nil {
return perrors.New(fmt.Sprintf("Filter protocol without registry new exporter error, url is {%v}", ivkURL))
Expand Down
4 changes: 2 additions & 2 deletions server/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (svcOpts *ServiceOptions) export(info *ServiceInfo) error {

for _, regUrl := range regUrls {
setRegistrySubURL(ivkURL, regUrl)
svcOpts.generatorInvoker(regUrl, info)
invoker = svcOpts.generatorInvoker(regUrl, info)
exporter := svcOpts.cacheProtocol.Export(invoker)
if exporter == nil {
return perrors.New(fmt.Sprintf("Registry protocol new exporter error, registry is {%v}, url is {%v}", regUrl, ivkURL))
Expand All @@ -243,7 +243,7 @@ func (svcOpts *ServiceOptions) export(info *ServiceInfo) error {
logger.Warnf("SetMetadataServiceURL error = %svcOpts", err)
}
}
svcOpts.generatorInvoker(ivkURL, info)
invoker = svcOpts.generatorInvoker(ivkURL, info)
exporter := extension.GetProtocol(protocolwrapper.FILTER).Export(invoker)
if exporter == nil {
return perrors.New(fmt.Sprintf("Filter protocol without registry new exporter error, url is {%v}", ivkURL))
Expand Down

0 comments on commit 90e7f69

Please sign in to comment.