Fix Suggest icon metrics
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:
Родитель
a0121f3512
Коммит
c8a1a57ab1
|
@ -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 => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче