diff options
author | Eric Wong <e@80x24.org> | 2019-12-12 21:16:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-14 21:13:48 +0000 |
commit | 0541761b0558317be1825710c1545f6e718103f2 (patch) | |
tree | ccf61ca0cf7bf988adcc7990e92592be74ea1f46 /lib/PublicInbox/NNTP.pm | |
parent | 8e02ffaf89afe2b39bf9618657de29bbff65c890 (diff) | |
download | public-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/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index c0496852..c9487114 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -11,7 +11,6 @@ use PublicInbox::Search; use PublicInbox::Msgmap; use PublicInbox::MID qw(mid_escape); use PublicInbox::Git; -require PublicInbox::EvCleanup; use Email::Simple; use POSIX qw(strftime); use PublicInbox::DS qw(now); @@ -70,7 +69,7 @@ sub expire_old () { } } $EXPMAP = \%new; - $expt = scalar(keys %new) ? PublicInbox::EvCleanup::later(*expire_old) + $expt = scalar(keys %new) ? PublicInbox::DS::later(*expire_old) : undef; } @@ -94,7 +93,7 @@ sub new ($$$) { greet($self); } update_idle_time($self); - $expt ||= PublicInbox::EvCleanup::later(*expire_old); + $expt ||= PublicInbox::DS::later(*expire_old); $self; } |