about summary refs log tree commit homepage
path: root/lib/PublicInbox/EvCleanup.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:09 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:25 +0000
commit0e1c3fe09a06faf24f7bca159020f69730f1275a (patch)
tree40bb7f5b2317abf9d36f52db5f3aaf31efbabeba /lib/PublicInbox/EvCleanup.pm
parentfdf67396c179a64154eaa6c10ac255d61ed39c01 (diff)
downloadpublic-inbox-0e1c3fe09a06faf24f7bca159020f69730f1275a.tar.gz
We don't need write buffering unless we encounter slow clients
requesting large responses.  So don't waste a hash slot or
(empty) arrayref for it.
Diffstat (limited to 'lib/PublicInbox/EvCleanup.pm')
-rw-r--r--lib/PublicInbox/EvCleanup.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/EvCleanup.pm b/lib/PublicInbox/EvCleanup.pm
index c64e2388..bd4dda11 100644
--- a/lib/PublicInbox/EvCleanup.pm
+++ b/lib/PublicInbox/EvCleanup.pm
@@ -29,7 +29,7 @@ sub once_init () {
         # never drains wbuf.  We can avoid wasting a hash slot by
         # stuffing the read-end of the pipe into the never-to-be-touched
         # wbuf
-        push @{$self->{wbuf}}, $r;
+        $self->{wbuf} = $r;
         $self;
 }