about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtSearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-07 23:05:14 -1000
committerEric Wong <e@80x24.org>2021-02-08 22:07:44 +0000
commit22d0454088da756ed34d0e26d060955512ce7587 (patch)
tree2b5d78b5a12906788460fe714515c67ac1cd1b7b /lib/PublicInbox/ExtSearchIdx.pm
parent860169adcd29341142b7c4a369c09b4ac492bd1e (diff)
downloadpublic-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/ExtSearchIdx.pm')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index 9b7340df..a4b3bbd5 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -29,7 +29,7 @@ use PublicInbox::V2Writable;
 use PublicInbox::InboxWritable;
 use PublicInbox::ContentHash qw(content_hash);
 use PublicInbox::Eml;
-use PublicInbox::DS qw(now);
+use PublicInbox::DS qw(now add_timer);
 use DBI qw(:sql_types); # SQL_BLOB
 
 sub new {
@@ -1027,8 +1027,7 @@ sub on_inbox_unlock { # called by PublicInbox::InboxIdle
         $pr->("indexing $ekey\n") if $pr;
         $self->idx_init($opt);
         sync_inbox($self, $self->{-watch_sync}, $ibx);
-        $self->{-commit_timer} //= PublicInbox::DS::add_timer(
-                                        $opt->{'commit-interval'} // 10,
+        $self->{-commit_timer} //= add_timer($opt->{'commit-interval'} // 10,
                                         \&_watch_commit, $self);
 }