diff options
author | Eric Wong <e@80x24.org> | 2023-01-10 11:49:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-11 04:41:18 +0000 |
commit | 64e922b569c6dc16d7e1d4851253b09da35b7265 (patch) | |
tree | dd9abd78eb45da615d30f3de19d4d5a9a5ea2c26 /lib/PublicInbox/Config.pm | |
parent | 4c48cee337c2d05d13122e442f7950b640e25b38 (diff) | |
download | public-inbox-64e922b569c6dc16d7e1d4851253b09da35b7265.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 4 |
1 files changed, 1 insertions, 3 deletions
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 { |