From 22d0454088da756ed34d0e26d060955512ce7587 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:14 -1000 Subject: ds: improve add_timer usability Packing args into an arrayref is awkward and we may be using this API more in lei. --- lib/PublicInbox/FakeInotify.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/FakeInotify.pm') 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; -- cgit v1.2.3-24-ge0c7