From 64e922b569c6dc16d7e1d4851253b09da35b7265 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 10 Jan 2023 11:49:21 +0000 Subject: config: use inbox names to map inboxes <-> coderepos We can avoid having to deal with weakening references and then later creating strong references in WwwCoderepo. --- lib/PublicInbox/Config.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/PublicInbox/Config.pm') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index c48ab2bd..cdf06d85 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -404,10 +404,8 @@ sub repo_objs { push @repo_objs, $repo if $repo; } if (scalar @repo_objs) { - require Scalar::Util; for (@repo_objs) { - push @{$_->{-ibxs}}, $ibxish; - Scalar::Util::weaken($_->{-ibxs}->[-1]); + push @{$_->{ibx_names}}, $ibxish->{name}; } $ibxish->{-repo_objs} = \@repo_objs; } else { -- cgit v1.2.3-24-ge0c7