diff options
author | Eric Wong <e@80x24.org> | 2021-10-19 09:33:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-19 17:29:20 +0000 |
commit | 7d7955735c1569f0df9b615f9d150c9d7e0dd6e2 (patch) | |
tree | 6a0491449c1a51d53c83b6b66b6bab414b05c4f1 /lib/PublicInbox | |
parent | bb0eab1051318528011252866b592735981084a5 (diff) | |
download | public-inbox-7d7955735c1569f0df9b615f9d150c9d7e0dd6e2.tar.gz |
lei: remove unused ->busy time arg
Our graceful shutdown doesn't time out clients.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 5b726f71..c1f28f7b 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -19,7 +19,7 @@ use IO::Handle (); use Fcntl qw(SEEK_SET); use PublicInbox::Config; use PublicInbox::Syscall qw(EPOLLIN); -use PublicInbox::DS qw(now dwaitpid); +use PublicInbox::DS qw(dwaitpid); use PublicInbox::Spawn qw(spawn popen_rd); use PublicInbox::Lock; use PublicInbox::Eml; @@ -1315,11 +1315,10 @@ sub lazy_start { $quit->(); } return 1 if defined($path); - my $now = now(); my $n = 0; for my $s (values %$dmap) { $s->can('busy') or next; - if ($s->busy($now)) { + if ($s->busy) { ++$n; } else { $s->close; |