From: Eric Wong Date: Fri, 13 Jan 2017 22:24:45 +0000 (+0000) Subject: gitasyncrd: pass a reference to Danga::Socket::write X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a20a1181a2d581892c0fc43b435cacd98443afe3;p=thirdparty%2Fpublic-inbox.git gitasyncrd: pass a reference to Danga::Socket::write D::S creates a reference for this, anyways, so avoid the extra work by doing it ourselves. --- diff --git a/lib/PublicInbox/GitAsyncRd.pm b/lib/PublicInbox/GitAsyncRd.pm index a56dc3921..465db2c78 100644 --- a/lib/PublicInbox/GitAsyncRd.pm +++ b/lib/PublicInbox/GitAsyncRd.pm @@ -29,7 +29,7 @@ sub cat_file_async { my ($self, $obj, $cb) = @_; # order matters push @{$self->{jobq}}, [ $obj, $cb ]; - $self->{wr}->write($obj."\n"); + $self->{wr}->write(\"$obj\n"); } # Returns: an array ref of the info line for --batch-check and --batch,