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

消息的mid算是“版本”的意思吗? #39

Closed
879913935 opened this issue Dec 14, 2015 · 4 comments
Closed

消息的mid算是“版本”的意思吗? #39

879913935 opened this issue Dec 14, 2015 · 4 comments

Comments

@879913935
Copy link

我没看到怎么生成的mid,具体哪段代码有具体点的

@Terry-Mao
Copy link
Owner

就是 message id ,逐渐增长的

@879913935
Copy link
Author

能给个大致的代码位置吗,没找到

@879913935
Copy link
Author

b.Lock()
defer b.Unlock()
timeId := id.Get()
msg := &myrpc.Message{Msg: args.Msg, MsgId: timeId}

是这里吧

@Terry-Mao
Copy link
Owner

对的

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