]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/FakeInotify.pm
config: lazy-load coderepos, support extindex
[public-inbox.git] / lib / PublicInbox / FakeInotify.pm
index 9275861368a0a00df5b95ff8acb4776413568d34..25818e071b3a15be5a9c145df802638e163f437c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # for systems lacking Linux::Inotify2 or IO::KQueue, just emulates
@@ -6,7 +6,7 @@
 package PublicInbox::FakeInotify;
 use strict;
 use Time::HiRes qw(stat);
-use PublicInbox::DS;
+use PublicInbox::DS qw(add_timer);
 sub IN_MODIFY () { 0x02 } # match Linux inotify
 # my $IN_MOVED_TO = 0x80;
 # my $IN_CREATE = 0x100;
@@ -66,7 +66,7 @@ sub read {
 sub poll_once {
        my ($obj) = @_;
        $obj->event_step; # PublicInbox::InboxIdle::event_step
-       PublicInbox::DS::add_timer($poll_intvl, \&poll_once, $obj);
+       add_timer($poll_intvl, \&poll_once, $obj);
 }
 
 package PublicInbox::FakeInotify::Watch;