]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: xref_by_tc: simplify slightly
authorEric Wong <e@80x24.org>
Fri, 4 Dec 2020 22:03:45 +0000 (22:03 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Dec 2020 21:41:52 +0000 (21:41 +0000)
commit0a80d0c2e723213e3981d2d6ef0de7cee60ee50c
treea7a00f99a4e2d51153723da1861c8e2979cc17cb
parent9356ec0cc5afc95a8fd398ddf898942ef0acdb74
nntp: xref_by_tc: simplify slightly

We can invalidate ibx->{newsgroup} at config load-time to avoid
having to check ibx->{newsgroup} validity in To/Cc: matching.
This saves us some hash lookups in all cases.
lib/PublicInbox/NNTP.pm
lib/PublicInbox/NNTPD.pm