about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-13 11:06:13 +0000
committerEric Wong <e@80x24.org>2021-07-18 00:00:08 +0000
commit41b03a53dd092738500320b5f976fa21b546f176 (patch)
tree46cd01b688537e1037acafe5a34b00ec24c563f8 /lib/PublicInbox/Config.pm
parentb5c380e01ba5106ceeb7159594830157e569e62b (diff)
downloadpublic-inbox-41b03a53dd092738500320b5f976fa21b546f176.tar.gz
We'll be using this in lei for watch configs.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index 36f2fafb..8e46328d 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -384,7 +384,7 @@ sub rel2abs_collapsed {
         Cwd::abs_path($p);
 }
 
-sub _one_val {
+sub get_1 {
         my ($self, $pfx, $k) = @_;
         my $v = $self->{"$pfx.$k"} // return;
         return $v if !ref($v);
@@ -430,7 +430,7 @@ sub _fill_ibx {
         }
         for my $k (qw(filter inboxdir newsgroup replyto httpbackendmax feedmax
                         indexlevel indexsequentialshard)) {
-                my $v = _one_val($self, $pfx, $k) // next;
+                my $v = get_1($self, $pfx, $k) // next;
                 $ibx->{$k} = $v;
         }
 
@@ -522,7 +522,7 @@ sub _fill_ei ($$) {
         }
         my $es = PublicInbox::ExtSearch->new($d);
         for my $k (qw(indexlevel indexsequentialshard)) {
-                my $v = _one_val($self, $pfx, $k) // next;
+                my $v = get_1($self, $pfx, $k) // next;
                 $es->{$k} = $v;
         }
         for my $k (qw(altid coderepo hide url infourl)) {