]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Config.pm
nntpd: share {groups} hash with {-by_newsgroup} in Config
[public-inbox.git] / lib / PublicInbox / Config.pm
index 251008a38e0e7e5b542c9675801e8d6b463a41c9..e7aea99b7ae80f8c8f515583b963d51bbfb59da7 100644 (file)
@@ -438,7 +438,9 @@ EOF
                }
        }
        if (my $ng = $ibx->{newsgroup}) {
-               $self->{-by_newsgroup}->{$ng} = $ibx;
+               # PublicInbox::NNTPD does stricter (and more expensive checks),
+               # keep this lean for startup speed
+               $self->{-by_newsgroup}->{$ng} = $ibx unless ref($ng);
        }
        $self->{-by_name}->{$name} = $ibx;
        if ($ibx->{obfuscate}) {