]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiMark.pm
lei: improve management around short-lived workers
[public-inbox.git] / lib / PublicInbox / LeiMark.pm
index 3b5e6c2cd8ac3b63a3f890d7fbeba49f165a9c04..9d77f4b49d207c922b5b545e6c973b409f95d399 100644 (file)
@@ -105,8 +105,8 @@ sub input_net_cb { # imap_each, nntp_each cb
 sub lei_mark { # the "lei mark" method
        my ($lei, @argv) = @_;
        my $sto = $lei->_lei_store(1);
-       my $self = $lei->{mark} = bless { missing => 0 }, __PACKAGE__;
        $sto->write_prepare($lei);
+       my $self = bless { missing => 0 }, __PACKAGE__;
        $lei->ale; # refresh and prepare
        my $vmd_mod = vmd_mod_extract(\@argv);
        return $lei->fail(join("\n", @{$vmd_mod->{err}})) if $vmd_mod->{err};