Closed rustworthy closed 1 month ago
Attention: Patch coverage is 59.15493%
with 29 lines
in your changes missing coverage. Please review.
Project coverage is 67.2%. Comparing base (
3c4058a
) to head (cf8f757
). Report is 3 commits behind head on main.
@jonhoo Sorry it took me a while this time. I was moving apartment and preparing some legal docs around my expat life :sweat_smile:
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 :smile: 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.
Feel free to merge this yourself once corrected :+1:
I've also now given you publish rights to faktory
on crates.io — you're now a full-fledged maintainer :)
On the Reconnect
thing, it's probably not ultimately all that important. My main wonder is if we can replace
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 BoxedConnection
that in turn contains a BoxedConnection
, meaning an extra (unnecessary) indirection.
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