mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 03:09:50 +08:00
feat: add scoped manual usage cleanup
This commit is contained in:
@@ -489,7 +489,7 @@ fn request_body_cleanup_record(
|
||||
}
|
||||
}
|
||||
|
||||
async fn record_cleanup_run(
|
||||
pub(crate) async fn record_admin_cleanup_run(
|
||||
data: &GatewayDataState,
|
||||
record: AdminCleanupRunRecord,
|
||||
) -> Result<(), DataLayerError> {
|
||||
@@ -509,6 +509,13 @@ async fn record_cleanup_run(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn record_cleanup_run(
|
||||
data: &GatewayDataState,
|
||||
record: AdminCleanupRunRecord,
|
||||
) -> Result<(), DataLayerError> {
|
||||
record_admin_cleanup_run(data, record).await
|
||||
}
|
||||
|
||||
fn parse_cleanup_run_records(value: Value) -> Vec<AdminCleanupRunRecord> {
|
||||
value
|
||||
.as_array()
|
||||
|
||||
Reference in New Issue
Block a user