diff options
author | Eric Wong <e@80x24.org> | 2017-01-13 22:28:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-13 22:28:36 +0000 |
commit | 26fdf73fb6b25583d8b4bc6a75d79a5ef7d88318 (patch) | |
tree | 1d17988b2b3c484065b00214d7fd8d51102846d2 /lib/PublicInbox/Git.pm | |
parent | a20a1181a2d581892c0fc43b435cacd98443afe3 (diff) | |
download | public-inbox-26fdf73fb6b25583d8b4bc6a75d79a5ef7d88318.tar.gz |
This wrapper class actually does both reading and writing, and a shorter name is nicer.
Diffstat (limited to 'lib/PublicInbox/Git.pm')
-rw-r--r-- | lib/PublicInbox/Git.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 0b482c7e..648aaaf0 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -15,7 +15,7 @@ use PublicInbox::Spawn qw(spawn popen_rd); use Fcntl qw(:seek); my $have_async = eval { require PublicInbox::EvCleanup; - require PublicInbox::GitAsyncRd; + require PublicInbox::GitAsync; }; # Documentation/SubmittingPatches recommends 12 (Linux v4.4) @@ -222,7 +222,7 @@ sub check_async_ds ($$$) { my ($self, $obj, $cb) = @_; ($self->{async_c} ||= do { _bidi_pipe($self, qw(--batch-check in_ac out_ac pid_ac)); - PublicInbox::GitAsyncRd->new($self->{in_ac}, $self->{out_ac}, 1) + PublicInbox::GitAsync->new($self->{in_ac}, $self->{out_ac}, 1); })->cat_file_async($obj, $cb); } @@ -230,7 +230,7 @@ sub cat_async_ds ($$$) { my ($self, $obj, $cb) = @_; ($self->{async} ||= do { _bidi_pipe($self, qw(--batch in_a out_a pid_a)); - PublicInbox::GitAsyncRd->new($self->{in_a}, $self->{out_a}); + PublicInbox::GitAsync->new($self->{in_a}, $self->{out_a}); })->cat_file_async($obj, $cb); } |