diff options
author | Eric Wong <e@80x24.org> | 2021-09-06 12:58:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-06 22:02:15 +0000 |
commit | 9cf83074ce8b46254ef6639d87e4e64372cc552b (patch) | |
tree | 5c019fea53d7d810e4c6fb36a904cd04597a2b0d /lib/PublicInbox/LeiAuth.pm | |
parent | 42802a2dba7257226a190598dc0341b7293c7977 (diff) | |
download | public-inbox-9cf83074ce8b46254ef6639d87e4e64372cc552b.tar.gz |
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".
Diffstat (limited to 'lib/PublicInbox/LeiAuth.pm')
-rw-r--r-- | lib/PublicInbox/LeiAuth.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |