Skip to content

Rust crypto: allow using a memory store #3536

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

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 30, 2023

It turns out that, for some usecases (in particular, "bot users" for cypress tests), we don't need persistent storage and an in-memory store will be fine.

(It's worth noting that, for that usecase, we can't just use the default indexeddb store, since that interferes with the store for the client under test. We could use a different prefix for the indexeddb, but it seems like we might as well avoid the overhead of indexeddb altogether.)

We can also use a memory store for the unit tests.

Based on #3532.


Here's what your changelog entry will look like:

✨ Features

  • Rust crypto: allow using a memory store (#3536).

@richvdh richvdh force-pushed the rav/element-r/35_verification_request_methods branch from 5c99c48 to 283a08a Compare July 3, 2023 11:19
@richvdh richvdh requested a review from a team as a code owner July 3, 2023 11:19
richvdh added 2 commits July 3, 2023 12:20
It turns out that, for some usecases (in particular, "bot users" for cypress
tests), we don't need persistent storage and an in-memory store will be fine.
@richvdh richvdh force-pushed the rav/element-r/36_rust_crypto_for_cypress_bot branch from d74c5eb to 943e1a6 Compare July 3, 2023 11:20
@richvdh richvdh merged commit 2ed9941 into rav/element-r/35_verification_request_methods Jul 3, 2023
@richvdh richvdh deleted the rav/element-r/36_rust_crypto_for_cypress_bot branch July 3, 2023 11:20
richvdh added a commit that referenced this pull request Jul 3, 2023
@richvdh richvdh restored the rav/element-r/36_rust_crypto_for_cypress_bot branch July 3, 2023 11:21
@github-actions github-actions bot deployed to PR Documentation Preview July 3, 2023 11:22 Active
github-merge-queue bot pushed a commit that referenced this pull request Jul 3, 2023
* implement `VerificationRequest.pending`

* Implement `VerificationRequest.timeout`

* Rust crypto: allow using a memory store (#3536)

* Rust crypto: allow using a memory store

It turns out that, for some usecases (in particular, "bot users" for cypress
tests), we don't need persistent storage and an in-memory store will be fine.

* Rust crypto: use a memory store for the unit tests
@richvdh richvdh deleted the rav/element-r/36_rust_crypto_for_cypress_bot branch February 14, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants