about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiNoteEvent.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-22 02:24:35 +0000
committerEric Wong <e@80x24.org>2021-09-22 05:21:23 +0000
commit7d2f9f7caf63256bab7b3342c52a1d97c889ada4 (patch)
tree9f363894a997b45cb78fefa9161f4c969bba24c2 /lib/PublicInbox/LeiNoteEvent.pm
parentcafbd77b3c82167d7dd6958c45373a0e92a0e2c5 (diff)
downloadpublic-inbox-7d2f9f7caf63256bab7b3342c52a1d97c889ada4.tar.gz
Redundant code is noise and therefore confusing :<
Diffstat (limited to 'lib/PublicInbox/LeiNoteEvent.pm')
-rw-r--r--lib/PublicInbox/LeiNoteEvent.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/PublicInbox/LeiNoteEvent.pm b/lib/PublicInbox/LeiNoteEvent.pm
index 43d5ed0f..d2429485 100644
--- a/lib/PublicInbox/LeiNoteEvent.pm
+++ b/lib/PublicInbox/LeiNoteEvent.pm
@@ -107,17 +107,11 @@ sub ipc_atfork_child {
         $self->SUPER::ipc_atfork_child;
 }
 
-sub lne_done_wait {
-        my ($arg, $pid) = @_;
-        my ($self, $lei) = @$arg;
-        $lei->can('wq_done_wait')->($arg, $pid);
-}
-
 sub _lei_wq_eof { # EOF callback for main lei daemon
         my ($lei) = @_;
         my $lne = delete $lei->{lne} or return $lei->fail;
         $lei->sto_done_request;
-        $lne->wq_wait_old(\&lne_done_wait, $lei);
+        $lne->wq_wait_old($lei->can('wq_done_wait'), $lei);
 }
 
 1;