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

feat(autonomi): run self encryption non-blocking #2397

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

b-zee
Copy link
Contributor

@b-zee b-zee commented Nov 6, 2024

Previously, the encrypt method might block other tasks from
progressing in the same runtime (thread).

In JS this would cause an issue as it's single threaded, meaning the UI
got blocked during encryption

Has to be compiled using nightly compiler arguments, e.g. to run tests:

RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' CARGO_TARGET_DIR=/home/zamaan/src/safe_network/target/wasm wasm-pack test --release --firefox autonomi -Z build-std=std,panic_abort --test wasm

Previously, the `encrypt` method might block other tasks from
progressing in the same runtime (thread).

In JS this would cause an issue as it's single threaded, meaning the UI
got blocked during encryption
@b-zee b-zee enabled auto-merge November 7, 2024 13:21
@b-zee b-zee added this pull request to the merge queue Nov 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 8, 2024
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