From 26fdf73fb6b25583d8b4bc6a75d79a5ef7d88318 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 13 Jan 2017 22:28:36 +0000 Subject: rename "GitAsyncRd" to "GitAsync" This wrapper class actually does both reading and writing, and a shorter name is nicer. --- lib/PublicInbox/Git.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Git.pm') 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); } -- cgit v1.2.3-24-ge0c7