diff options
author | Eric Wong <e@80x24.org> | 2017-02-15 00:06:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-15 19:21:24 +0000 |
commit | 993dc7a772b10deda15733c8e750d98bf4d27bd0 (patch) | |
tree | 6448a82de9df201d624be902d2b0c54270b0adb0 | |
parent | 36c89ffaf34c6fe50bd8c49f44163dbb85680a43 (diff) | |
download | public-inbox-993dc7a772b10deda15733c8e750d98bf4d27bd0.tar.gz |
We must lazilly load one of them, so load Inbox later since we need to parse the config, first.
-rw-r--r-- | lib/PublicInbox/Config.pm | 2 | ||||
-rw-r--r-- | t/config_limiter.t | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index f2c40b13..15c2a085 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -5,7 +5,6 @@ package PublicInbox::Config; use strict; use warnings; -require PublicInbox::Inbox; use PublicInbox::Spawn qw(popen_rd); # returns key-value pairs of config directives in a hash @@ -131,6 +130,7 @@ sub git_config_dump { } sub _fill { + require PublicInbox::Inbox; my ($self, $pfx) = @_; my $rv = {}; diff --git a/t/config_limiter.t b/t/config_limiter.t index f0b65281..04f32cbf 100644 --- a/t/config_limiter.t +++ b/t/config_limiter.t @@ -4,6 +4,7 @@ use strict; use warnings; use Test::More; use PublicInbox::Config; +use PublicInbox::Inbox; my $cfgpfx = "publicinbox.test"; { my $config = PublicInbox::Config->new({ |