diff options
author | Eric Wong <e@80x24.org> | 2021-03-27 11:45:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-27 18:10:25 +0000 |
commit | 3f3b431db893f6de342abea0e461894c83c4e458 (patch) | |
tree | 11e197284461c65c18fd39f1c070eb9a0f6d35d1 /lib/PublicInbox/LeiALE.pm | |
parent | 0c1a911235f99ea3469c69a4297e544fe5301bfa (diff) | |
download | public-inbox-3f3b431db893f6de342abea0e461894c83c4e458.tar.gz |
We want to be able to read blobs without writing anything to disk.
Diffstat (limited to 'lib/PublicInbox/LeiALE.pm')
-rw-r--r-- | lib/PublicInbox/LeiALE.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiALE.pm b/lib/PublicInbox/LeiALE.pm index 45748435..cb570ab4 100644 --- a/lib/PublicInbox/LeiALE.pm +++ b/lib/PublicInbox/LeiALE.pm @@ -28,7 +28,8 @@ sub new { my ($self, $lei) = @_; ref($self) or $self = _new($lei->cache_dir . '/all_locals_ever.git'); my $lxs = PublicInbox::LeiXSearch->new; - $lxs->prepare_external($lei->_lei_store(1)->search); + my $sto = $lei->_lei_store; + $lxs->prepare_external($sto->search) if $sto; for my $loc ($lei->externals_each) { # locals only $lxs->prepare_external($loc) if -d $loc; } |