From 039e1492f773ad1664e3d8a8bac7d67b1de9392f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Oct 2020 07:54:17 +0000 Subject: inboxwritable: eidx_key for external index This is preferable to open-coding "newsgroup // inboxdir" everywhere. --- lib/PublicInbox/InboxWritable.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/PublicInbox/InboxWritable.pm') diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index e97c7e2d..d3c255c7 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -319,4 +319,6 @@ sub git_dir_latest { $latest; } +sub eidx_key { $_[0]->{newsgroup} // $_[0]->{inboxdir} } + 1; -- cgit v1.2.3-24-ge0c7