diff options
author | Eric Wong <e@80x24.org> | 2015-09-19 08:42:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-20 02:59:01 +0000 |
commit | 5dfd4af2452a2fdb28e046e15a44b2d13bdacac0 (patch) | |
tree | 8cb58d727d742fa35c54bb6b8f80c2f35c4b5305 /lib/PublicInbox/NewsGroup.pm | |
parent | b9e80e83a18bb139f02e598576b2596b340b6ebe (diff) | |
download | public-inbox-5dfd4af2452a2fdb28e046e15a44b2d13bdacac0.tar.gz |
Avoid depending on IO::Socket::INET if we can help it, we do not need to bloat ourselves with lot of that functionality.
Diffstat (limited to 'lib/PublicInbox/NewsGroup.pm')
-rw-r--r-- | lib/PublicInbox/NewsGroup.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm index 6cc3f248..b8aed529 100644 --- a/lib/PublicInbox/NewsGroup.pm +++ b/lib/PublicInbox/NewsGroup.pm @@ -36,7 +36,10 @@ sub gcf { } sub mm { - my ($self) = @_; + my ($self, $check_only) = @_; + if ($check_only) { + return eval { PublicInbox::Msgmap->new($self->{git_dir}) }; + } $self->{mm} ||= eval { my $mm = PublicInbox::Msgmap->new($self->{git_dir}); |