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

[WIP]feat: add provider code #2379

Closed
wants to merge 12 commits into from
Closed

[WIP]feat: add provider code #2379

wants to merge 12 commits into from

Conversation

L2ncE
Copy link
Contributor

@L2ncE L2ncE commented Aug 13, 2023

Under continuous dev.

* 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
@L2ncE L2ncE changed the base branch from main to feature-triple August 13, 2023 09:44
Meta map[string]interface{}
}

func NewProvider(opts ...ServiceOption) (*Provider, error) {
Copy link
Contributor

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}

// ExportMethod exports the service
func (s *ServiceConfig) ExportMethod() error {
Copy link
Contributor

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.

Comment on lines 419 to 427

// default meta cache config
const (
DefaultMetaCacheName = "dubbo.meta"
DefaultMetaFileName = "dubbo.metadata"
DefaultEntrySize = 100
)
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@L2ncE L2ncE closed this Sep 2, 2023
@L2ncE L2ncE deleted the feat/provider branch September 2, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants