diff options
author | Eric Wong <e@80x24.org> | 2021-08-25 08:40:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-25 19:33:49 +0000 |
commit | b6eb866869609afef72c77f41507905828014673 (patch) | |
tree | 83431f9145a5614ce217ff108d224ec5dbc1e29e /lib/PublicInbox/LeiUp.pm | |
parent | 796e7215a167f36d0b950631c3b1e44fa47fec07 (diff) | |
download | public-inbox-b6eb866869609afef72c77f41507905828014673.tar.gz |
The "# $NR written to $DEST ($total matches)" messages are arguably the most useful output of "lei up --all=local", but they get intermixed with progress messages from various workers. Queue up these finalization messages and only spit them out on ->DESTROY.
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r-- | lib/PublicInbox/LeiUp.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index ba11761a..85efd9f5 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -48,6 +48,8 @@ sub up1 ($$) { sub up1_redispatch { my ($lei, $out, $op_p) = @_; + require PublicInbox::LeiFinmsg; + $lei->{fmsg} //= PublicInbox::LeiFinmsg->new($lei->{2}); my $l = bless { %$lei }, ref($lei); $l->{opt} = { %{$l->{opt}} }; delete $l->{sock}; |