wal: Exit early when retrying 0 keys

Summary:
**Context**: We want to roll out the new WAL multiplexed blobstore and need final tweaks before doing that. See https://fb.quip.com/vyTWAgGZSA2Z

It was printing "Requeuing 0 items", which is useless.

I also fixed a typo.

Differential Revision: D40715976

fbshipit-source-id: 7bf0d1608781e523992a1e32c4484828003e752a
This commit is contained in:
Yan Soares Couto 2022-11-03 15:12:55 -07:00 committed by Facebook GitHub Bot
parent 7c1af682c9
commit bf32800670

View File

@ -420,9 +420,12 @@ async fn enqueue_entries(
wal: &dyn BlobstoreWal,
entries: Vec<BlobstoreWalEntry>,
) -> Result<()> {
if entries.is_empty() {
return Ok(());
}
info!(
ctx.logger(),
"Requeueing {} some queue entries for another healing attempt",
"Requeueing {} queue entries for another healing attempt",
entries.len()
);
let new_entries = entries