Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/cdn/fastly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ where
// SurrogateKeys::from_iter::until_full only consumes as many elements as will fit into
// the header.
// The rest is up to the next `batching` iteration.
Some(SurrogateKeys::from_iter_until_full(
it.take(MAX_SURROGATE_KEYS_IN_BATCH_PURGE),
))
let keys = SurrogateKeys::from_iter_until_full(it.take(MAX_SURROGATE_KEYS_IN_BATCH_PURGE));

if keys.key_count() > 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait isn't part of #3034?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is also part of that,

it was a quickfix for the case that the review would be fast enough :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or it was a test ;)

Some(keys)
} else {
None
}
}) {
for sid in config
.fastly_service_sid_web
Expand Down
Loading