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

Refactoring: move jsonRPC requests handling away from WS #21

Merged
merged 8 commits into from
Mar 14, 2024

Conversation

ziopio
Copy link
Member

@ziopio ziopio commented Mar 14, 2024

No description provided.

@ziopio
Copy link
Member Author

ziopio commented Mar 14, 2024

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just another refactoring idea: The handle_event function is huge and is grouped already a bit by state. I guess using state_functions as callback mode, would improve the readability.

Copy link
Member Author

@ziopio ziopio Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe, there are not many states so this could help a bit. Should I do it in this PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No should be a separate PR.

Copy link
Member

@maehjam maehjam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just use the correct plural of "reply", see comments.

test/grisp_io_jsonrpc_SUITE.erl Show resolved Hide resolved
src/grisp_io_client.erl Outdated Show resolved Hide resolved
@ziopio ziopio merged commit 3a5b4e7 into main Mar 14, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants