-
Notifications
You must be signed in to change notification settings - Fork 24
refactor: replace eventuals with Tokio watch for disputes #369
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
|
Wow, I didn't know it would cause this chain reaction. It turned out to be bigger than I thought, sorry for that. |
|
No, I'm sorry I messed up, you only asked for changing the dispute variable right?, misunderstood, changed all the eventual variables in the errored files, if for now, you want change only on disputes do tell, I'll push it seperately. |
Do you know if it's possible to split into 4 different PRs (assuming all of the PRs are gonna build/test correctly)? It's currently too big and I'm scared of miss anything. In case this is not possible just let me know and I'll try to review carefully this big PR. |
|
Sure, I'll do that, but I can only do that tomorrow, came out for a small interview . |
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.
Hey, this is just a mini-review about the current work. It's in the right direction!
Pull Request Test Coverage Report for Build 11407487878Details
💛 - Coveralls |
hi, I'm little new to this, does this mean you have reviewed the most of code?, cause I was going to just limit the PR to disputes_manger as of now |
Nope, this is just a verification check to understand test coverage of your PR. This means what's the percentage of your code is being tested by tests. You don't need to worry about it. |
|
Hi, please have a look, it was responding to both variable changes when I tested in a local program. |
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.
Hey, I loved your solution. Here are just some small changes and questions.
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.
LGTM. Could you fix the issues with CI? We had a mini refactor updating the imports for Address to use alloy::primitives, I guess your merge didn't handle it.
sure, I had to resolve last conflict on github so couldn't run commands, BTW:-
|
|
Thank you for taking the time to review and approve my PR. I really appreciate your feedback and support in getting this merged! |
We have two tests that usually fail:
Other than those two checks, all of the others should pass correctly. |
2353f73
| use thegraph_core::Address; | ||
| use tokio::sync::watch::{self, Receiver}; | ||
| use tokio::time::{self, sleep}; | ||
| use alloy::primitives::Address; |
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.
Could you use use alloy::primitives::Address; instead of use thegraph_core::Address;
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.
oh , sorry
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.
LGTM, thank you so much for the clean and beautiful code.
|
Really humbled by your kind words, BTW could you assign |
Fixes #361
tried fixing only disputes[caused a chain reaction], had to fix all related too,
.map_err(|e| CheckError::Retryable(e.into()))?in tap-agent signatureif any of the above violates current code/is wrong do tell, I'll fix, also there are so many unnecessary comments, I'll remove after review