diff options
author | Eric Wong <e@80x24.org> | 2020-09-02 11:04:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-03 20:11:03 +0000 |
commit | 73e3a6ed6e95adc67cfa10079f11c28fe3f78517 (patch) | |
tree | 46faba429086e37aeef256315da61dfeebe2179f /scripts | |
parent | d73d783ab2cf14ba28ca63723223d8c85a68cdd5 (diff) | |
download | public-inbox-73e3a6ed6e95adc67cfa10079f11c28fe3f78517.tar.gz |
use more idiomatic internal API for ->over access
{over_ro} being a part of the Search object is a historical oddity which will go away, soon. Lets start removing its use in tests and rarely-used helper scripts.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dupe-finder | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/dupe-finder b/scripts/dupe-finder index 04714cbd..7b490cbb 100644 --- a/scripts/dupe-finder +++ b/scripts/dupe-finder @@ -21,8 +21,7 @@ if (index($repo, '@') > 0) { } $ibx or die "No inbox"; $ibx->search or die "search not available for inbox"; -my $dbh = $ibx->search->{over_ro}->dbh; -my $over = PublicInbox::Over->new($dbh->sqlite_db_filename); +my $over = $ibx->over; sub emit ($) { my ($nums) = @_; |