about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiExternal.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-19 12:50:33 +0000
committerEric Wong <e@80x24.org>2021-09-19 19:53:03 +0000
commit9d0f17840479508de4aaf76fe6c150e94a9f79c3 (patch)
tree9065f32b760acbb8e4285600e4be01ebe631476a /lib/PublicInbox/LeiExternal.pm
parent20c940a876728fe91892200dd874dd917cd677ac (diff)
downloadpublic-inbox-9d0f17840479508de4aaf76fe6c150e94a9f79c3.tar.gz
As with "lei edit-search", "lei config --edit" may
spawn an interactive editor which works best from
the terminal running script/lei.

So implement LeiConfig as a superclass of LeiEditSearch
so the two commands can share the same verification
hooks and retry logic.
Diffstat (limited to 'lib/PublicInbox/LeiExternal.pm')
-rw-r--r--lib/PublicInbox/LeiExternal.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm
index 6fd3efef..d802f0e2 100644
--- a/lib/PublicInbox/LeiExternal.pm
+++ b/lib/PublicInbox/LeiExternal.pm
@@ -139,7 +139,7 @@ sub add_external_finish {
         my $key = "external.$location.boost";
         my $cur_boost = $cfg->{$key};
         return if defined($cur_boost) && $cur_boost == $new_boost; # idempotent
-        $self->lei_config($key, $new_boost);
+        $self->_config($key, $new_boost);
 }
 
 sub lei_add_external {