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

Simplify RPC watchWorker #3394

Merged
merged 1 commit into from
Dec 13, 2022
Merged

Simplify RPC watchWorker #3394

merged 1 commit into from
Dec 13, 2022

Conversation

cmdcolin
Copy link
Collaborator

Possible code simplification for the watchWorker RPC

Currently if this fails, it can produce a large stack trace due to the recursion. It's not very obscured by doing so, but seemed sort of awkward so I changed it into a while loop and the code seemed simpler anyways

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Dec 13, 2022
@cmdcolin cmdcolin added internal and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Dec 13, 2022
@cmdcolin
Copy link
Collaborator Author

ideally, we don't want to really ever see rpc timeouts. should only come under extreme load that indicates that it is going to crash or something...in any other case, we want to let it try to chug thru the data

@codecov
Copy link

codecov bot commented Dec 13, 2022

Codecov Report

Merging #3394 (0aaeb21) into main (6e018ea) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3394      +/-   ##
==========================================
- Coverage   60.48%   60.48%   -0.01%     
==========================================
  Files         823      823              
  Lines       29812    29807       -5     
  Branches     7176     7176              
==========================================
- Hits        18033    18028       -5     
  Misses      11591    11591              
  Partials      188      188              
Impacted Files Coverage Δ
packages/core/rpc/BaseRpcDriver.ts 81.73% <100.00%> (-0.84%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmdcolin cmdcolin merged commit 3151648 into main Dec 13, 2022
@cmdcolin cmdcolin deleted the rpc_timeout_simplify branch December 13, 2022 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant