mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #2103] [MERGED] Async/Awaited all db methods #6695
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2103
Author: @BlackDex
Created: 11/16/2021
Status: ✅ Merged
Merged: 11/21/2021
Merged by: @dani-garcia
Base:
async← Head:async-chores📝 Commits (2)
b36129aAsync/Awaited all db methodsfb801c9Upd Dockerfiles, crates. Fixed rust 2018 idioms📊 Changes
52 files changed (+1525 additions, -1261 deletions)
View changed files
📝
Cargo.lock(+30 -29)📝
Cargo.toml(+8 -8)📝
docker/Dockerfile.j2(+6 -3)📝
docker/amd64/Dockerfile(+5 -2)📝
docker/amd64/Dockerfile.alpine(+5 -2)📝
docker/amd64/Dockerfile.buildx(+5 -2)📝
docker/amd64/Dockerfile.buildx.alpine(+5 -2)📝
docker/arm64/Dockerfile(+5 -2)📝
docker/arm64/Dockerfile.buildx(+5 -2)📝
docker/armv6/Dockerfile(+5 -2)📝
docker/armv6/Dockerfile.buildx(+5 -2)📝
docker/armv7/Dockerfile(+5 -2)📝
docker/armv7/Dockerfile.alpine(+4 -1)📝
docker/armv7/Dockerfile.buildx(+5 -2)📝
docker/armv7/Dockerfile.buildx.alpine(+4 -1)📝
rustfmt.toml(+4 -4)📝
src/api/admin.rs(+80 -73)📝
src/api/core/accounts.rs(+55 -57)📝
src/api/core/ciphers.rs(+289 -201)📝
src/api/core/emergency_access.rs(+123 -93)...and 32 more files
📄 Description
This is a rather large PR which updates the async branch to have all the
database methods as an async fn.
Some iter/map logic needed to be changed to a stream::iter().then(), but
besides that most changes were just adding async/await where needed.
Also updated the libraries to the latest available while at it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.