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

fix: remove random timeout from download of client config #4261

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

joschisan
Copy link
Contributor

@joschisan joschisan commented Feb 7, 2024

We remove the timeout since this is the only place were we use such a timeout and therefore its unexpected behaviour, especially in a generally async system. If we want to timeout the download of the client config we should do so explicitly by wrapping either try_download_client_config or FederationInfo::from_invite_code with a timeout instead of somewhere in the middle.

@joschisan joschisan marked this pull request as ready for review February 7, 2024 08:18
@joschisan joschisan requested a review from a team as a code owner February 7, 2024 08:18
Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

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

How can we test this? Wasn't there another draft PR that replicated the slowness? Maybe that replication can be cherry-picked here now that it's being fixed.

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7245b06) 58.06% compared to head (3086518) 58.01%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4261      +/-   ##
==========================================
- Coverage   58.06%   58.01%   -0.06%     
==========================================
  Files         197      197              
  Lines       43700    43678      -22     
==========================================
- Hits        25376    25340      -36     
- Misses      18324    18338      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinmoon
Copy link
Contributor

How can we test this? Wasn't there another draft PR that replicated the slowness? Maybe that replication can be cherry-picked here now that it's being fixed.

#4226 ?

@justinmoon justinmoon added this pull request to the merge queue Feb 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 12, 2024
@dpc dpc added this pull request to the merge queue Feb 12, 2024
Merged via the queue into fedimint:master with commit 663dd03 Feb 12, 2024
22 checks passed
@joschisan joschisan deleted the rm_timeout branch April 20, 2024 07:59
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.

None yet

4 participants