From 73e3a6ed6e95adc67cfa10079f11c28fe3f78517 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Sep 2020 11:04:13 +0000 Subject: 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. --- scripts/dupe-finder | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') 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) = @_; -- cgit v1.2.3-24-ge0c7