about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-27 02:53:07 -0500
committerEric Wong <e@80x24.org>2021-09-27 09:22:49 +0000
commit996de3c67d490b4052bd16179b229b30c2f890f8 (patch)
treed9f58dbdd5b5889640ddc7d2a6b7cf39acff8c90 /lib/PublicInbox/LEI.pm
parent751df49e7db8ba770dff28fb701b31c57ca200e2 (diff)
downloadpublic-inbox-996de3c67d490b4052bd16179b229b30c2f890f8.tar.gz
Instead of passing the prefix section and key separately, pass
them together as is commonly done with git-config(1) usage as
well as our ->get_all API.  This inconsistency in the get_1 API
is a needless footgun and confused me a bit while working on
"lei up" the other week.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index b8159cba..df0bfab6 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -1425,7 +1425,7 @@ sub refresh_watches {
                 require PublicInbox::LeiWatch;
                 $watches->{$url} //= PublicInbox::LeiWatch->new($url);
                 $seen{$url} = undef;
-                my $state = $cfg->get_1("watch.$url", 'state');
+                my $state = $cfg->get_1("watch.$url.state");
                 if (!watch_state_ok($state)) {
                         $lei->err("watch.$url.state=$state not supported");
                         next;