Migrate translator to shared synchronous primitive - #530
Conversation
f086369 to
4f9d12a
Compare
| .with(|data| data.authorized_worker_name == *name) | ||
| .unwrap(); |
There was a problem hiding this comment.
Can't propagate error from Sv1Server downstream message handler, considering it doesn't support TproxyError type.
There was a problem hiding this comment.
Moved forward with UnknownId variant for now, we can extend error enum in Sv1 crate later to include some poison related variant.
There was a problem hiding this comment.
Why not tackling that now, by doing the changes on sv1_api?
There was a problem hiding this comment.
This would require adding an error variant to sv1_api, which I can do. But it wouldn't really be specific to the library we would basically be adding a poison variant just because our downstream crate needs it.
Initially, I was thinking about having an associated error type, similar to what we do in handlers. But I need to think about it a bit more and consider how the APIs around this might evolve.
There was a problem hiding this comment.
Or maybe I can have an universal error mapping in sv1 error enum. Maybe that could do the trick.
There was a problem hiding this comment.
Blocked by: #664, I will pull this PR back to draft and wait for the assoc error type PR to get merged.
4f9d12a to
26c7b24
Compare
cd0fdd1 to
2ec31b8
Compare
|
Is this aiming to close #601? |
yup updated the description |
|
Can you solve conflicts? |
a8e04fe to
dcb1833
Compare
Should be good now |
|
Preliminary clanker findings: |
043ddf7 to
2f6c38b
Compare
2f6c38b to
b12b08f
Compare
| // It's safe to unwrap hashrate because we know that | ||
| // the downstream has a hashrate (we are | ||
| // doing vardiff) |
There was a problem hiding this comment.
How do you know that we are doing vardiff? Vardiff can be disabled from the config.
|
Second pass of clanker review: Review — updated revision (b12b08f)The update addresses all substantive issues from my previous review. Two remaining 1. Latent panic: completed vardiff/keepalive futures can be re-polled
Today this is unreachable — Suggestion: on 2. sv1_api error handling in
|
closes: #601