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

Nacos cannot be used with micro #60

Closed
RonaldFletcher opened this issue Aug 31, 2021 · 1 comment
Closed

Nacos cannot be used with micro #60

RonaldFletcher opened this issue Aug 31, 2021 · 1 comment

Comments

@RonaldFletcher
Copy link

image
image

@Jekinnnnnn
Copy link

Jekinnnnnn commented Sep 3, 2021

because current nacos plugin use old version nacos-go-sdk which has a problem when call newRegistry without setting clientConfig option NotLoadCacheAtStart to true,if you want to learn more,go to nacos-go-sdk repo and find what i has metioned.nacos-group/nacos-sdk-go#299
this issue has fixed in master but hasn't release yet.
you can workaround if service doesn't need to load disk cache start at, set WithNotLoadCacheAtStart to true like

clientConfig := *constant.NewClientConfig(
    constant.WithNotLoadCacheAtStart(true),
)

and use api WithClientConfig(clientConfig) and put it into newRegistry args

@xpunch xpunch transferred this issue from micro/go-micro Sep 17, 2022
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

No branches or pull requests

2 participants