-
Notifications
You must be signed in to change notification settings - Fork 269
Make sure RpcEventLoop is Send+Sync #499
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
Conversation
server-utils/src/reactor.rs
Outdated
| mod tests { | ||
| use super::*; | ||
|
|
||
| fn send_and_sync<T: Send + Sync>(_: T) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have actually write this without args, and also I would have put it in the test itself as it is not useful to reuse
| fn send_and_sync<T: Send + Sync>(_: T) {} | |
| fn send_and_sync<T: Send + Sync>() {} |
| lazy_static = "1.1.0" | ||
| log = "0.4" | ||
| tokio = { version = "0.1" } | ||
| tokio = { version = "0.1.15" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tokio = "0.1.22" is the latest BTW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but we don't really require the latest. I just tested that 0.1.15 is enough to fix the Send + Sync issue, so that's the minimal version we support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, cool I was confused by the commit message then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah. Good point :) I wasn't paying that much attention when writing it.
No description provided.