Supervisor handling node updates via subscription#1836
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| |_| { | ||
| use std::io::Write; | ||
| let secret = JwtSecret::random(); | ||
| if let Ok(mut file) = File::create("jwt.hex") { |
There was a problem hiding this comment.
I don't think we should create the jwt here.
Since we are developing the client side, we shouldn't create the jwt(The should be the server's responsibility).
| let auth_header = | ||
| format!("Bearer {}", alloy_primitives::hex::encode(jwt_secret.as_bytes())); | ||
| headers.insert( | ||
| "Authorization", |
There was a problem hiding this comment.
which crate are you referring to here?
| let err_msg = format!("Failed to send stop signal: {:?}", e); | ||
| error!("{}", err_msg); |
There was a problem hiding this comment.
Can you follow this logging pattern?
| let err_msg = format!("Failed to send stop signal: {:?}", e); | |
| error!("{}", err_msg); | |
| error!( | |
| target: "managed_node", | |
| ?err, | |
| "Failed to send stop signal" | |
| ); |
| let auth_header = | ||
| format!("Bearer {}", alloy_primitives::hex::encode(jwt_secret.as_bytes())); | ||
| headers.insert( | ||
| "Authorization", |
There was a problem hiding this comment.
which crate are you referring to here?
Closes #1681 Things that are still left: - Call relevant DB functions on event notification - Check subscription with actual node - Fallback to HTTP polling using `PullEvents` if subscription does not work --------- Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Closes op-rs/kona#1681 Things that are still left: - Call relevant DB functions on event notification - Check subscription with actual node - Fallback to HTTP polling using `PullEvents` if subscription does not work --------- Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Closes #1681 Things that are still left: - Call relevant DB functions on event notification - Check subscription with actual node - Fallback to HTTP polling using `PullEvents` if subscription does not work --------- Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Closes #1681
Things that are still left:
PullEventsif subscription does not work