cargo fmt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-12 11:54:21 +02:00
parent e9b9f33aee
commit 42fb291c7c
3 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,6 @@ pub enum Operation {
///
/// NOTE: one must *not* do any IO operations when only helding this Op state
Lookup,
// GarbageCollect or Delete?
}
@ -43,7 +42,6 @@ pub enum MaintenanceType {
// - Add "GarbageCollection" or "DeleteOnly" as type and track GC (or all deletes) as separate
// operation, so that one can enable a mode where nothing new can be added but stuff can be
// cleaned
/// Only read operations are allowed on the datastore.
ReadOnly,
/// Neither read nor write operations are allowed on the datastore.

View File

@ -597,7 +597,8 @@ async fn schedule_datastore_garbage_collection() {
}
};
{ // limit datastore scope due to Op::Lookup
{
// limit datastore scope due to Op::Lookup
let datastore = match DataStore::lookup_datastore(&store, Some(Operation::Lookup)) {
Ok(datastore) => datastore,
Err(err) => {

View File

@ -483,7 +483,9 @@ Ext.define('PBS.DataStoreContent', {
datastore: view.datastore,
namespace: view.namespace ?? '',
listeners: {
destroy: () => view.down('pbsNamespaceSelector').store?.load(),
destroy: () => {
view.down('pbsNamespaceSelector').store?.load();
},
},
});
},