about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-12 21:16:47 +0000
committerEric Wong <e@80x24.org>2019-12-14 21:13:48 +0000
commit0541761b0558317be1825710c1545f6e718103f2 (patch)
treeccf61ca0cf7bf988adcc7990e92592be74ea1f46 /lib/PublicInbox/Inbox.pm
parent8e02ffaf89afe2b39bf9618657de29bbff65c890 (diff)
downloadpublic-inbox-0541761b0558317be1825710c1545f6e718103f2.tar.gz
EvCleanup only existed since Danga::Socket was a separate
component, and cleanup code belongs with the event loop.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm6
1 files changed, 3 insertions, 3 deletions
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;
 }