From 8fe9ff206dfc868882d8382f9b718868e2660330 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Oct 2023 08:50:58 +0000 Subject: ds: make %AWAIT_PIDS a hash, not hashref This is more persistent than some of the others and we don't swap it on use (unlike $nextq or $ToClose). In other words, it's helpful for communicating its lifetime expectancy is close to %DescriptorMap and not like to queue-type things such as $ToClose. --- lib/PublicInbox/LEI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LEI.pm') diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 5f3147bf..e300f0a4 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1302,7 +1302,7 @@ sub can_stay_alive { # PublicInbox::DS::post_loop_do cb } }; # returns true: continue, false: stop - $n + scalar(keys(%$PublicInbox::DS::AWAIT_PIDS)); + $n + scalar(keys(%PublicInbox::DS::AWAIT_PIDS)); } # lei(1) calls this when it can't connect -- cgit v1.2.3-24-ge0c7