Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:set invoker #2533

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading