mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 17:28:12 +00:00
feat: Replace LRU cache with Moka async cache in policy variables (#1166)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -612,7 +612,7 @@ struct ArgsBuilder {
|
||||
"24"
|
||||
)]
|
||||
fn policy_is_allowed(policy: Policy, args: ArgsBuilder) -> bool {
|
||||
policy.is_allowed(&Args {
|
||||
pollster::block_on(policy.is_allowed(&Args {
|
||||
account: &args.account,
|
||||
groups: &{
|
||||
if args.groups.is_empty() {
|
||||
@@ -628,5 +628,5 @@ fn policy_is_allowed(policy: Policy, args: ArgsBuilder) -> bool {
|
||||
object: &args.object,
|
||||
claims: &args.claims,
|
||||
deny_only: args.deny_only,
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user