From 0541761b0558317be1825710c1545f6e718103f2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 12 Dec 2019 21:16:47 +0000 Subject: ds: move EvCleanup code into DS EvCleanup only existed since Danga::Socket was a separate component, and cleanup code belongs with the event loop. --- lib/PublicInbox/Inbox.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Inbox.pm') diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 5feb2154..43c6a428 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -50,9 +50,9 @@ sub cleanup_task () { } sub cleanup_possible () { - # no need to require EvCleanup, here, if it were enabled another + # no need to require DS, here, if it were enabled another # module would've require'd it, already - eval { PublicInbox::EvCleanup::enabled() } or return 0; + eval { PublicInbox::DS::running() } or return 0; eval { require Devel::Peek; # needs separate package in Fedora @@ -65,7 +65,7 @@ sub _cleanup_later ($) { my ($self) = @_; $cleanup_avail = cleanup_possible() if $cleanup_avail < 0; return if $cleanup_avail != 1; - $cleanup_timer ||= PublicInbox::EvCleanup::later(*cleanup_task); + $cleanup_timer ||= PublicInbox::DS::later(*cleanup_task); $CLEANUP->{"$self"} = $self; } -- cgit v1.2.3-24-ge0c7