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

生产消息 Push(v string) 使用纳秒并不能保证key唯一 #59

Closed
gaoqin31 opened this issue Jan 11, 2024 · 1 comment
Closed

Comments

@gaoqin31
Copy link

Key: []byte(strconv.FormatInt(time.Now().UnixNano(), 10))

生产消息 Push(v string) 使用纳秒并不能保证key唯一

@gaotangqi
Copy link

gaotangqi commented Apr 8, 2024

消费的时候加锁有问题 : https://developer.aliyun.com/article/1121501

set nx ex 同时执行有问题 导致锁失效问题

WechatIMG63

@kevwan kevwan closed this as completed in a8f1bf1 Apr 8, 2024
kevwan added a commit that referenced this issue Apr 8, 2024
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