-
Notifications
You must be signed in to change notification settings - Fork 16
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
Tech debt #79
Tech debt #79
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
@jonhoo Sorry it took me a while this time. I was moving apartment and preparing some legal docs around my expat life 😅 So I have addressed - I think so - all the threads, but this one. I was guided by the compiler and the current implementation made it happy, and you unhappy 😄 I agree it looks and feels weird, but I think I will need your help with this. Please let me know if you while reviewing you catch other things that we better refactor now if this will be breaking. |
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.
These changes all look great, thanks! A small nit is all.
No worries with the delay — I've had a similar delay now, and will likely be gone for the next month or so between work and holidays 😅
Feel free to merge this yourself once corrected 👍 I've also now given you publish rights to |
On the impl Reconnect for BufStream<TlsStream<tokio::net::TcpStream>>
impl Reconnect for BufStream<TlsStream<proto::BoxedConnection>> with impl<S> Reconnect for TlsStream<S> where S: Reconnect I'm also a little suspicious of impl Reconnect for BufStream<TlsStream<proto::BoxedConnection>> in the first place since that will end up returning a |
Co-authored-by: Jon Gjengset <[email protected]>
Use ::connect() vs ::connect_to(&str) as per thread
Job's
reserve_for
is now using Duration;We are adding public
Wokrer::is_terminated
so that they can check and not run a terminated worker;Refactoring: using
tokio::time::interval
in the heartbeat thread instead oftokio::time::sleep
This change is