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

chore(loopbackRpcIssuer): reduced random wait #161

Closed
wants to merge 1 commit into from

Conversation

lukas-mertens
Copy link
Collaborator

@lukas-mertens lukas-mertens commented Apr 19, 2024

In most cases the random wait doesn't help, as users just want to use
the admin panel, not test how it reacts to bad network condition. For
now I just reduced it, maybe later we can add a toggle

Signed-off-by: Lukas Mertens [email protected]


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Copy link

github-actions bot commented Apr 19, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 0.12% 15 / 12196
🔵 Statements 0.12% 15 / 12196
🔵 Functions 2.5% 1 / 40
🔵 Branches 9.3% 4 / 43
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/modules/evbc/connection.ts 0% 0% 0% 0%
Generated in workflow #54

@nzbr
Copy link
Contributor

nzbr commented Apr 23, 2024

Maybe I do not understand this correctly, as I haven't worked with the admin panel code so far, but (if that was your intention) you did not change the duration of the random wait, but the return value of the get_rpc_timeout function. To change the duration, you'd have to edit LOOPBACK_WAIT_MS in src/modules/evbc/connection.ts

@lukas-mertens
Copy link
Collaborator Author

@nzbr Wow. Good catch. What I did there didn't make any sense at all.

In most cases the random wait doesn't help, as users just want to use
the admin panel, not test how it reacts to bad network condition. For
now I just reduced it, maybe later we can add a toggle

Signed-off-by: Lukas Mertens <[email protected]>

commit-id:fdcfca23
@lukas-mertens
Copy link
Collaborator Author

✓ Commit merged in pull request #164

@lukas-mertens lukas-mertens deleted the spr/main/fdcfca23 branch April 24, 2024 17:29
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.

3 participants