Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 77ebed5

Browse files
committed
fix: compile with latest version of cached
Ensure the code compiles with the latest version of cached Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent bb09ae2 commit 77ebed5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/callback_handler/kubernetes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub(crate) async fn get_resource(
8181
#[cached(
8282
time = 5,
8383
result = true,
84-
sync_writes = true,
84+
sync_writes = "default",
8585
key = "String",
8686
convert = r#"{ format!("get_resource_cached({},{}),{},{:?}", api_version, kind, name, namespace) }"#,
8787
with_cached_flag = true

src/callback_handler/oci.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl Client {
8787
#[cached(
8888
time = 60,
8989
result = true,
90-
sync_writes = true,
90+
sync_writes = "default",
9191
key = "String",
9292
convert = r#"{ format!("{}", img) }"#,
9393
with_cached_flag = true
@@ -115,7 +115,7 @@ pub(crate) async fn get_oci_digest_cached(
115115
#[cached(
116116
time = 60,
117117
result = true,
118-
sync_writes = true,
118+
sync_writes = "default",
119119
key = "String",
120120
convert = r#"{ format!("{}", img) }"#,
121121
with_cached_flag = true
@@ -130,7 +130,7 @@ pub(crate) async fn get_oci_manifest_cached(
130130
#[cached(
131131
time = 60,
132132
result = true,
133-
sync_writes = true,
133+
sync_writes = "default",
134134
key = "String",
135135
convert = r#"{ format!("{}", img) }"#,
136136
with_cached_flag = true

src/callback_handler/sigstore_verification.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl Client {
258258
#[cached(
259259
time = 60,
260260
result = true,
261-
sync_writes = true,
261+
sync_writes = "default",
262262
key = "String",
263263
convert = r#"{ format!("{}{:?}{:?}", image, pub_keys, annotations)}"#,
264264
with_cached_flag = true
@@ -285,7 +285,7 @@ pub(crate) async fn get_sigstore_pub_key_verification_cached(
285285
#[cached(
286286
time = 60,
287287
result = true,
288-
sync_writes = true,
288+
sync_writes = "default",
289289
key = "String",
290290
convert = r#"{ format!("{}{:?}{:?}", image, keyless, annotations)}"#,
291291
with_cached_flag = true
@@ -312,7 +312,7 @@ pub(crate) async fn get_sigstore_keyless_verification_cached(
312312
#[cached(
313313
time = 60,
314314
result = true,
315-
sync_writes = true,
315+
sync_writes = "default",
316316
key = "String",
317317
convert = r#"{ format!("{}{:?}{:?}", image, keyless_prefix, annotations)}"#,
318318
with_cached_flag = true
@@ -339,7 +339,7 @@ pub(crate) async fn get_sigstore_keyless_prefix_verification_cached(
339339
#[cached(
340340
time = 60,
341341
result = true,
342-
sync_writes = true,
342+
sync_writes = "default",
343343
key = "String",
344344
convert = r#"{ format!("{}{:?}{:?}{:?}", image, owner, repo, annotations)}"#,
345345
with_cached_flag = true
@@ -395,7 +395,7 @@ fn get_sigstore_certificate_verification_cache_key(
395395
#[cached(
396396
time = 60,
397397
result = true,
398-
sync_writes = true,
398+
sync_writes = "default",
399399
key = "String",
400400
convert = r#"{ format!("{}", get_sigstore_certificate_verification_cache_key(image, certificate, certificate_chain, require_rekor_bundle, annotations.as_ref()))}"#,
401401
with_cached_flag = true

0 commit comments

Comments
 (0)