diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 23:05:14 -1000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-08 22:07:44 +0000 |
commit | 22d0454088da756ed34d0e26d060955512ce7587 (patch) | |
tree | 2b5d78b5a12906788460fe714515c67ac1cd1b7b /lib/PublicInbox/FakeInotify.pm | |
parent | 860169adcd29341142b7c4a369c09b4ac492bd1e (diff) | |
download | public-inbox-22d0454088da756ed34d0e26d060955512ce7587.tar.gz |
Packing args into an arrayref is awkward and we may be using this API more in lei.
Diffstat (limited to 'lib/PublicInbox/FakeInotify.pm')
-rw-r--r-- | lib/PublicInbox/FakeInotify.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/FakeInotify.pm b/lib/PublicInbox/FakeInotify.pm index 326b2391..25818e07 100644 --- a/lib/PublicInbox/FakeInotify.pm +++ b/lib/PublicInbox/FakeInotify.pm @@ -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; |