Skip to content

fix: use WASM-safe mint recovery timeout - #9056

Open
fedimint-bot wants to merge 1 commit into
masterfrom
fedimint-bot/wasm-timeout-9054
Open

fix: use WASM-safe mint recovery timeout#9056
fedimint-bot wants to merge 1 commit into
masterfrom
fedimint-bot/wasm-timeout-9054

Conversation

@fedimint-bot

Copy link
Copy Markdown
Contributor

Fixes #9054.

Summary

Replace mint recovery's direct tokio::time::timeout calls with fedimint_core::runtime::timeout, which works in WASM builds.

Details

  • Updates both mint recovery download paths to use the runtime timeout abstraction.
  • Adds a semgrep guard for direct tokio::time::timeout usage in the affected mint client crates.
  • Scopes the new rule to those WASM-built client paths to avoid pulling unrelated server/test timeout cleanup into this fix.

Testing

  • just format
  • cargo check -q -p fedimint-mint-client
  • cargo check -q -p fedimint-mintv2-client
  • pre-commit checks run by git commit

Comment thread .config/semgrep.yaml Outdated
paths:
include:
- modules/fedimint-mint-client/
- modules/fedimint-mintv2-client/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@fedimint-bot should includ all client and common modules. amend

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Amended in 35fe8c0.

Changed ban-tokio-timeout to include:

  • modules/fedimint-*-client/
  • modules/fedimint-*-common/

Verified with:

  • just format
  • semgrep --config .config/semgrep.yaml --include 'modules/fedimint-*-client/**' --include 'modules/fedimint-*-common/**' --error --quiet

The amend commit hook also ran the configured pre-commit checks.

@fedimint-bot
fedimint-bot force-pushed the fedimint-bot/wasm-timeout-9054 branch from 60def0a to 35fe8c0 Compare August 26, 2026 13:43
@elsirion
elsirion marked this pull request as ready for review August 31, 2026 16:22
@elsirion
elsirion requested a review from a team as a code owner August 31, 2026 16:22
@elsirion
elsirion enabled auto-merge August 31, 2026 16:22
@elsirion
elsirion added this pull request to the merge queue Aug 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 31, 2026
@m1sterc001guy
m1sterc001guy added this pull request to the merge queue Sep 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 3, 2026
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.

mint recovery uses tokio::time::timeout, which does not work on WASM

2 participants