diff options
author | Eric Wong <e@80x24.org> | 2020-12-31 17:47:50 -1200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-02 09:15:10 +0000 |
commit | d893d3c028a7fc442e024e5e5b8ea737945b19b3 (patch) | |
tree | a3694a511a8a2eecd43afbb27e814c8714a56792 /lib/PublicInbox/LeiStore.pm | |
parent | af2429033aef447f0149b207d87ffacfb057fc6d (diff) | |
download | public-inbox-d893d3c028a7fc442e024e5e5b8ea737945b19b3.tar.gz |
Hopefully this will make it easier to spot dependency bugs in the future.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r-- | lib/PublicInbox/LeiStore.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index 7c62ffea..a3decf5f 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -24,10 +24,7 @@ sub new { my (undef, $dir, $opt) = @_; my $eidx = PublicInbox::ExtSearchIdx->new($dir, $opt); my $self = bless { priv_eidx => $eidx }, __PACKAGE__; - if ($opt->{creat}) { - PublicInbox::SearchIdx::load_xapian_writable(); - eidx_init($self); - } + eidx_init($self) if $opt->{creat}; $self; } |