diff options
author | Eric Wong <e@80x24.org> | 2023-04-28 21:07:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-04-29 06:05:13 +0000 |
commit | 847389d8d4012177616e51f0af3151ed8ab58ff3 (patch) | |
tree | db7b1a2fc97af86a658b21bbcf4f4e00d0851686 /lib/PublicInbox/V2Writable.pm | |
parent | 0f3b7b6058cc4b667e6fbd967d882ad8c47de288 (diff) | |
download | public-inbox-847389d8d4012177616e51f0af3151ed8ab58ff3.tar.gz |
This simplifies Git->cat_async_step and fixes Git->async_abort, the latter of which was passing arguments improperly for the --batch-check (or `info') case at the cost of making the few check_async callers handle an extra argument. The extra (PublicInbox::Git) $self argument for check_async callbacks is now gone, as avoiding the temporary cyclic reference doesn't seem worthwhile since the temporary cyclic reference appears in the ->cat_async code paths, too.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index ae8d778f..191c5588 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1160,6 +1160,7 @@ sub index_todo ($$$) { }; if ($f eq 'm') { if ($sync->{max_size}) { + $req->{git} = $all; $all->check_async($oid, \&check_size, $req); } else { $all->cat_async($oid, $index_oid, $req); |