mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #2084] [MERGED] Macro recursion decrease and other optimizations #3053
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3053
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/2084
Author: @BlackDex
Created: 11/5/2021
Status: ✅ Merged
Merged: 11/6/2021
Merged by: @dani-garcia
Base:
main← Head:minimize-macro-recursion📝 Commits (1)
c453528Macro recursion decrease and other optimizations📊 Changes
17 files changed (+210 additions, -242 deletions)
View changed files
📝
Cargo.lock(+69 -100)📝
Cargo.toml(+5 -5)📝
docker/Dockerfile.j2(+1 -1)📝
docker/amd64/Dockerfile.alpine(+1 -1)📝
docker/amd64/Dockerfile.buildx.alpine(+1 -1)📝
rust-toolchain(+1 -1)📝
src/api/admin.rs(+2 -3)📝
src/api/core/accounts.rs(+2 -2)📝
src/api/core/organizations.rs(+17 -45)📝
src/api/notifications.rs(+2 -2)📝
src/auth.rs(+0 -1)📝
src/config.rs(+89 -64)📝
src/db/models/two_factor.rs(+0 -1)📝
src/error.rs(+1 -1)📝
src/mail.rs(+5 -5)📝
src/main.rs(+5 -1)📝
src/util.rs(+9 -8)📄 Description
recursion_limitfrom 512 to 87Mainly done by optimizing the config macro's.
This fixes an issue with the rust-analyzer which doesn't go beyond 128
This is much faster then using a Regex.
_conn: DbConnfrom several functions, these caused unnecessary database connections for functions who didn't used that at all/plansThis also fixes some rare issues with SMTP https://github.com/lettre/lettre/issues/678
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.