fetch the secrets unit's store leaves concurrently and log how long each phase takes
This commit is contained in:
parent
23c2527199
commit
197caa1e52
1 changed files with 268 additions and 9 deletions
|
|
@ -27,7 +27,7 @@
|
|||
client_secret_read() {
|
||||
CLIENT_SECRET_VALUE=""
|
||||
[ "$STORE_UP" = 1 ] || return 2
|
||||
if CLIENT_SECRET_VALUE="$(store_bao kv get -field=value "$1" 2>"$STORE_ERR")" \
|
||||
if CLIENT_SECRET_VALUE="$(store_read "$1")" \
|
||||
&& [ -n "$CLIENT_SECRET_VALUE" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue