diff options
author | Eric Wong <e@80x24.org> | 2022-08-23 08:32:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-23 22:40:57 +0000 |
commit | 31d40ba06a49b572dacbdb5758dac8f77fb55188 (patch) | |
tree | cf4d91c7dae9a9c77968cfbf400c726be4814c0c /lib/PublicInbox/GitAsyncCat.pm | |
parent | 51ac89f11a5a2ccdceff48736aa80b74391e60bf (diff) | |
download | public-inbox-31d40ba06a49b572dacbdb5758dac8f77fb55188.tar.gz |
ibx_async_cat: access ->{git} directly
This will enable callers to pass non-Inbox-ish hashrefs as the arg. This benefits existing Inbox-ish objects, too, as it avoids a slow method dispatch for both ExtSearch and Inbox.
Diffstat (limited to 'lib/PublicInbox/GitAsyncCat.pm')
-rw-r--r-- | lib/PublicInbox/GitAsyncCat.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitAsyncCat.pm b/lib/PublicInbox/GitAsyncCat.pm index 6b7425f6..c12c4ec2 100644 --- a/lib/PublicInbox/GitAsyncCat.pm +++ b/lib/PublicInbox/GitAsyncCat.pm @@ -47,7 +47,7 @@ sub event_step { sub ibx_async_cat ($$$$) { my ($ibx, $oid, $cb, $arg) = @_; - my $git = $ibx->git; + my $git = $ibx->{git} // $ibx->git; # {topdir} means ExtSearch (likely [extindex "all"]) with potentially # 100K alternates. git(1) has a proposed patch for 100K alternates: # <https://lore.kernel.org/git/20210624005806.12079-1-e@80x24.org/> |