Minor Memory Optimization in Airlock Libs
Build Library / Build Library (push) Successful in 4m8s

This commit is contained in:
brotoskyj
2025-11-06 10:35:21 -05:00
parent cd63d61677
commit d5c9bbe38e
6 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -95,6 +95,7 @@ pub fn pull_policy_exec_histories(
progress_bar.enable_steady_tick(std::time::Duration::from_millis(100));
let client = build_client(py, &py_self);
let api: Py<PyAny> = py_self;
let cutoff = Local::now().naive_local() - Duration::days(days);
loop {
let execution_histories = history_logging(
py,
@@ -152,7 +153,6 @@ pub fn pull_policy_exec_histories(
Ok(date) => date,
Err(_) => continue,
};
let cutoff = Local::now().naive_local() - Duration::days(days);
if history_date >= cutoff.into() {
let key = (
executions.sha256.clone(),