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

etcd分布式锁的代码是不是有问题 #230

Open
pioneerlfn opened this issue Sep 28, 2019 · 0 comments
Open

etcd分布式锁的代码是不是有问题 #230

pioneerlfn opened this issue Sep 28, 2019 · 0 comments

Comments

@pioneerlfn
Copy link

lock()下调用了watcher.Next(),成功返回之后只是代表可以继续申请锁了吧,为什么直接返回了nil,我觉得需要再次调用m.kapi.Set

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

1 participant