diff options
author | Eric Wong <e@80x24.org> | 2022-07-07 09:40:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-07-07 09:47:57 +0000 |
commit | e85ea061aa504e490bccbaad8d249ce039c0ab53 (patch) | |
tree | 01fcf9f21a53232c63f6db9067bca3c96c657214 /lib/PublicInbox/LeiXSearch.pm | |
parent | ad655616d39ba3806a9c38f0febf456df0fa17bd (diff) | |
download | public-inbox-e85ea061aa504e490bccbaad8d249ce039c0ab53.tar.gz |
There's no need to check for two fields when one will suffice.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r-- | lib/PublicInbox/LeiXSearch.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index 2958d3f9..41e79856 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -285,7 +285,7 @@ sub each_remote_eml { # callback for MboxReader->mboxrd my ($res, $kw) = $self->{import_sto}->wq_do('add_eml', $eml); if (ref($res) eq ref($smsg)) { # totally new message $smsg = $res; - $self->{-imported} = 1; + $self->{-sto_imported} = 1; } $smsg->{kw} = $kw; # short-circuit xsmsg_vmd } @@ -376,7 +376,7 @@ sub query_remote_mboxrd { $fh = IO::Uncompress::Gunzip->new($fh, MultiStream => 1); PublicInbox::MboxReader->mboxrd($fh, \&each_remote_eml, $self, $lei, $each_smsg); - if ($self->{import_sto} && delete($self->{-imported})) { + if (delete($self->{-sto_imported})) { my $wait = $self->{import_sto}->wq_do('done'); } $reap_curl->join; |