From ea9b01fc63f864435370d3bc9cec674ce03e887e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Aug 2021 00:29:44 +0000 Subject: lei: hexdigest mocks account for unwanted headers PublicInbox::Import never imports @UNWANTED_HEADERS, so ensure our mock blob OIDs do the same. This ought to prevent duplicates if the PSGI mboxrd download starts setting "X-Status: F" like "lei q -tt .." --- lib/PublicInbox/LeiXSearch.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiXSearch.pm') diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 971f3a06..5e34d864 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -274,8 +274,7 @@ sub each_remote_eml { # callback for MboxReader->mboxrd $smsg->{kw} = []; # short-circuit xsmsg_vmd } } - $smsg->{blob} //= $xoids ? (keys(%$xoids))[0] - : git_sha(1, $eml)->hexdigest; + $smsg->{blob} //= $xoids ? (keys(%$xoids))[0] : $lei->git_blob_id($eml); _smsg_fill($smsg, $eml); wait_startq($lei); if ($lei->{-progress}) { -- cgit v1.2.3-24-ge0c7