-
Notifications
You must be signed in to change notification settings - Fork 929
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
[WIP]feat: add provider code #2379
Conversation
* implement cache manager * add meta cache * updata go mod * improve code * improve code * improve init time * update cache * fix bug * improve code * improve code * improve code
provider/provider.go
Outdated
Meta map[string]interface{} | ||
} | ||
|
||
func NewProvider(opts ...ServiceOption) (*Provider, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the name of package and struct from provider to server. Refer(#2378).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
provider/service_config.go
Outdated
} | ||
|
||
// ExportMethod exports the service | ||
func (s *ServiceConfig) ExportMethod() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be Export and ExportWithInfo like Refer and ReferWithInfo.
common/constant/key.go
Outdated
|
||
// default meta cache config | ||
const ( | ||
DefaultMetaCacheName = "dubbo.meta" | ||
DefaultMetaFileName = "dubbo.metadata" | ||
DefaultEntrySize = 100 | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines of code should not belong to this patch. Please pull from the latest main branch and rebase onto it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
* Fix: Increase the dump interval for cache manager test * fix bug
Fixes #2382. The condition of assigning a random port for protocols should be that port is less than or equal to 0, not the length of the port string.
Kudos, SonarCloud Quality Gate passed! |
Under continuous dev.