Skip to content
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

ClientActor should not contain any processing details #7899

Open
3 tasks
mzhangmzz opened this issue Oct 21, 2022 · 0 comments
Open
3 tasks

ClientActor should not contain any processing details #7899

mzhangmzz opened this issue Oct 21, 2022 · 0 comments

Comments

@mzhangmzz
Copy link
Contributor

mzhangmzz commented Oct 21, 2022

Any processing details should be put in Client instead of ClientActor. ClientActor should only serve as a coordinator class to handle messages and check triggers but immediately pass the control to Client. This is better for testing since we can't write unit test for any logic in ClientActor and also better for code readability as the logic is not scattered in two classes.

near-bulldozer bot pushed a commit that referenced this issue Oct 25, 2022
…k processing to client (#7898)

This PR is a pure refactoring. The context is that any processing details should be put in Client instead of ClientActor. ClientActor should just serve as a coordinator class to handle messages and check triggers and immediately pass it to Client. This is better for testing since we can't write unit test for any logic in ClientActor and also better for code readability as the logic is not scattered in two classes.

This PR only moves the part around block processing. The rest is tracked by #7899
nikurt pushed a commit that referenced this issue Oct 25, 2022
…k processing to client (#7898)

This PR is a pure refactoring. The context is that any processing details should be put in Client instead of ClientActor. ClientActor should just serve as a coordinator class to handle messages and check triggers and immediately pass it to Client. This is better for testing since we can't write unit test for any logic in ClientActor and also better for code readability as the logic is not scattered in two classes.

This PR only moves the part around block processing. The rest is tracked by #7899
nikurt pushed a commit that referenced this issue Nov 7, 2022
…k processing to client (#7898)

This PR is a pure refactoring. The context is that any processing details should be put in Client instead of ClientActor. ClientActor should just serve as a coordinator class to handle messages and check triggers and immediately pass it to Client. This is better for testing since we can't write unit test for any logic in ClientActor and also better for code readability as the logic is not scattered in two classes.

This PR only moves the part around block processing. The rest is tracked by #7899
nikurt pushed a commit that referenced this issue Nov 9, 2022
…k processing to client (#7898)

This PR is a pure refactoring. The context is that any processing details should be put in Client instead of ClientActor. ClientActor should just serve as a coordinator class to handle messages and check triggers and immediately pass it to Client. This is better for testing since we can't write unit test for any logic in ClientActor and also better for code readability as the logic is not scattered in two classes.

This PR only moves the part around block processing. The rest is tracked by #7899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant