mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 08:52:56 +00:00
fmt
This commit is contained in:
committed by
Conrad Ludgate
parent
bdd68bb069
commit
e8ccb4a4d1
@@ -87,7 +87,12 @@ impl JwkCacheEntry {
|
||||
self.key_sets
|
||||
.values()
|
||||
// make sure our requested role has access to the key set
|
||||
.filter(|key_set| key_set.role_names.iter().any(|role| *role.as_str() == **role_name))
|
||||
.filter(|key_set| {
|
||||
key_set
|
||||
.role_names
|
||||
.iter()
|
||||
.any(|role| *role.as_str() == **role_name)
|
||||
})
|
||||
// try and find the requested key-id in the key set
|
||||
.find_map(|key_set| {
|
||||
key_set
|
||||
|
||||
Reference in New Issue
Block a user