]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
gitasyncrd: pass a reference to Danga::Socket::write
authorEric Wong <e@80x24.org>
Fri, 13 Jan 2017 22:24:45 +0000 (22:24 +0000)
committerEric Wong <e@80x24.org>
Fri, 13 Jan 2017 22:24:45 +0000 (22:24 +0000)
D::S creates a reference for this, anyways, so avoid
the extra work by doing it ourselves.

lib/PublicInbox/GitAsyncRd.pm

index a56dc39212dbff50fc114ccb4077c62cb80385dc..465db2c78008cbc1433cb6229b93781cd211a6cb 100644 (file)
@@ -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,