From a20a1181a2d581892c0fc43b435cacd98443afe3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 13 Jan 2017 22:24:45 +0000 Subject: 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. --- lib/PublicInbox/GitAsyncRd.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/GitAsyncRd.pm b/lib/PublicInbox/GitAsyncRd.pm index a56dc392..465db2c7 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, -- cgit v1.2.3-24-ge0c7