From 9cf83074ce8b46254ef6639d87e4e64372cc552b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 6 Sep 2021 12:58:03 +0000 Subject: lei_auth: simplify users There's no need to alias net_merge_all in each WQ class which uses LeiAuth, `$obj->$sub' works even when `$sub' is a fully-qualified subroutine name with `::' in it. perlobj(1) documents it under "Method Call Variations". --- lib/PublicInbox/LeiAuth.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiAuth.pm') diff --git a/lib/PublicInbox/LeiAuth.pm b/lib/PublicInbox/LeiAuth.pm index 73c0be59..465a2758 100644 --- a/lib/PublicInbox/LeiAuth.pm +++ b/lib/PublicInbox/LeiAuth.pm @@ -49,9 +49,10 @@ sub net_merge_all { # called in wq worker via wq_broadcast } # called by top-level lei-daemon when first worker is done with auth +# passes updated net auth info to current workers sub net_merge_continue { my ($wq, $net_new) = @_; - $wq->wq_broadcast('net_merge_all', $net_new); # pass to current workers + $wq->wq_broadcast('PublicInbox::LeiAuth::net_merge_all', $net_new); $wq->net_merge_all_done; # defined per-WQ } -- cgit v1.2.3-24-ge0c7