This one uses a slightly different code path to download things, which
caused us to measure the download time as ingestion time.
This commit is contained in:
Ben Dean-Kawamura 2024-10-21 15:22:26 -04:00 коммит произвёл bendk
Родитель a0121f3512
Коммит c8a1a57ab1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -589,7 +589,8 @@ where
// malformed, so skip to the next record.
return Ok(());
};
let data = self.settings_client.download_attachment(record)?;
let data = download_timer
.measure_download(|| self.settings_client.download_attachment(record))?;
dao.put_icon(icon_id, &data, &attachment.mimetype)?;
}
SuggestRecord::Amo => {