]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
fix syntax warnings
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index b9cd4c40a6dc7541f799f0da8b520e426af7df4d..666c81d7125cc68e7166e1249edcb2fec0376bdf 100644 (file)
@@ -29,7 +29,7 @@ sub cleanup_task () {
 
 sub _cleanup_later ($) {
        my ($self) = @_;
-       return unless $PublicInbox::EvCleanup::ENABLED;
+       return unless PublicInbox::EvCleanup::enabled();
        $cleanup_timer ||= PublicInbox::EvCleanup::later(*cleanup_task);
        $CLEANUP->{"$self"} = $self;
 }
@@ -75,7 +75,7 @@ sub new {
        _set_uint($opts, 'feedmax', 25);
        $opts->{nntpserver} ||= $pi_config->{'publicinbox.nntpserver'};
        my $dir = $opts->{mainrepo};
-       if (defined $dir && -f "$dir/msgmap.sqlite3") { # XXX DIRTY
+       if (defined $dir && -f "$dir/inbox.lock") {
                $opts->{version} = 2;
        }
        bless $opts, $class;