about summary refs log tree commit homepage
path: root/lib/PublicInbox/Qspawn.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-23 11:05:15 +0000
committerEric Wong <e@80x24.org>2022-12-23 12:44:26 +0000
commit1556c660030b7ebb4006f522026e638285e94f46 (patch)
tree3b501d743270a9192ebd6d249b6e6c97849557db /lib/PublicInbox/Qspawn.pm
parent372d6e03debe13cab1ed00a3a59e834566c7a709 (diff)
downloadpublic-inbox-1556c660030b7ebb4006f522026e638285e94f46.tar.gz
Use more unique names within the project to minimize confusion
since these packages interact quite a bit and using identical
names leads to needless confusion.
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r--lib/PublicInbox/Qspawn.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm
index da7cd74f..6e245389 100644
--- a/lib/PublicInbox/Qspawn.pm
+++ b/lib/PublicInbox/Qspawn.pm
@@ -187,7 +187,7 @@ sub event_step {
         my ($self, $err) = @_; # $err: $!
         warn "psgi_{return,qx} $err" if defined($err);
         finish($self);
-        my ($fh, $qx_fh) = delete(@$self{qw(fh qx_fh)});
+        my ($fh, $qx_fh) = delete(@$self{qw(qfh qx_fh)});
         $fh->close if $fh; # async-only (psgi_return)
 }
 
@@ -242,7 +242,7 @@ sub psgi_return_init_cb {
                 # done reading headers, handoff to read body
                 my $fh = $wcb->($r); # scalar @$r == 2
                 $fh = $filter->attach($fh) if $filter;
-                $self->{fh} = $fh;
+                $self->{qfh} = $fh;
                 $async->async_pass($env->{'psgix.io'}, $fh,
                                         delete($self->{hdr_buf}));
         } else { # for synchronous PSGI servers