From d2670108f71b1eff11ddb4288cc18a6c1f3d4322 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jun 2021 09:52:06 +0000 Subject: pkt_op: make pkt_do an OO method This will make it easier to use for internal use such as managing Maildir and IMAP IDLE watches. --- 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 f7c1e559..75e55d47 100644 --- a/lib/PublicInbox/LeiXSearch.pm +++ b/lib/PublicInbox/LeiXSearch.pm @@ -9,7 +9,6 @@ use strict; use v5.10.1; use parent qw(PublicInbox::LeiSearch PublicInbox::IPC); use PublicInbox::DS qw(now); -use PublicInbox::PktOp qw(pkt_do); use File::Temp 0.19 (); # 0.19 for ->newdir use File::Spec (); use PublicInbox::Search qw(xap_terms); @@ -142,7 +141,7 @@ sub mset_progress { my $lei = shift; return if $lei->{early_mua} || !$lei->{-progress}; if ($lei->{pkt_op_p}) { - pkt_do($lei->{pkt_op_p}, 'mset_progress', @_); + $lei->{pkt_op_p}->pkt_do('mset_progress', @_); } else { # single lei-daemon consumer my ($desc, $mset_size, $mset_total_est) = @_; $lei->{-mset_total} += $mset_size if $mset_total_est ne '?'; -- cgit v1.2.3-24-ge0c7