diff options
author | Eric Wong <e@80x24.org> | 2023-12-13 00:50:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-12-13 09:01:55 +0000 |
commit | 5d3527c2bdf52bf938be76479b46e38fff3cc43b (patch) | |
tree | 29efd87a27f42869bbec42f5f892726f3633c65c | |
parent | 9dd86d2555177f401aa622e391b7b80b5ee5cf1f (diff) | |
download | public-inbox-5d3527c2bdf52bf938be76479b46e38fff3cc43b.tar.gz |
gzip_filter: use OO ->zflush dispatch
While it's not in a code path intended WwwCoderepo and RepoAtom, those classes provide their own ->zflush, this can future-proof our code against future subclasses at a minor performance cost.
-rw-r--r-- | lib/PublicInbox/GzipFilter.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GzipFilter.pm b/lib/PublicInbox/GzipFilter.pm index fc471ea2..8b630f25 100644 --- a/lib/PublicInbox/GzipFilter.pm +++ b/lib/PublicInbox/GzipFilter.pm @@ -106,7 +106,7 @@ sub translate { zmore($self, @_); length($self->{zbuf}) >= 8192 ? delete($self->{zbuf}) : ''; } else { # undef == EOF - zflush($self); + $self->zflush; } } |