We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d4e8d2 commit 5bd105fCopy full SHA for 5bd105f
src/cdn/fastly.rs
@@ -46,9 +46,13 @@ where
46
// SurrogateKeys::from_iter::until_full only consumes as many elements as will fit into
47
// the header.
48
// The rest is up to the next `batching` iteration.
49
- Some(SurrogateKeys::from_iter_until_full(
50
- it.take(MAX_SURROGATE_KEYS_IN_BATCH_PURGE),
51
- ))
+ let keys = SurrogateKeys::from_iter_until_full(it.take(MAX_SURROGATE_KEYS_IN_BATCH_PURGE));
+
+ if keys.key_count() > 0 {
52
+ Some(keys)
53
+ } else {
54
+ None
55
+ }
56
}) {
57
for sid in config
58
.fastly_service_sid_web
0 commit comments