Guillaume Boutry a9e24c4580
Optimize access to the snap data
Access to each key took around 15 to 20ms, with more than 50 keys it
adds up, This code path is often executed. Get all keys from snapd at
once, and compare with values to set.
Fix issue when unit is departing and private key is removed.

Change-Id: I655a79ece3f09271532e0f41914141532474f2ac
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2024-07-30 17:46:58 +02:00
..
2024-07-30 17:46:58 +02:00