From 7b654d175cf2e31b4354929ea678563f534947e5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Jan 2023 04:30:57 +0000 Subject: ipc: drop awaitpid_init to avoid circular refs This brings t/lei-index.t back down from ~8 to ~3s. I didn't notice this before was because the LeiNoteEvent timer was firing every 5s and clearing circular refs and parallel testing meant the delay got hidden. Fixes: 4a2a95bbc78f99c8 (ipc+lei: switch to awaitpid, 2023-01-17) --- lib/PublicInbox/LeiUp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiUp.pm') diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 3e92242e..cd2337b4 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -165,7 +165,7 @@ sub _complete_up { # lei__complete hook map { $match_cb->($_) } PublicInbox::LeiSavedSearch::list($lei); } -sub _wq_done_wait { # awaitpid cb (via awaitpid_init) +sub _wq_done_wait { # awaitpid cb my ($pid, $wq, $lei) = @_; $lei->child_error($?, 'auth failure') if $? } -- cgit v1.2.3-24-ge0c7