From: Eric Wong Date: Wed, 13 Dec 2023 00:50:18 +0000 (+0000) Subject: gzip_filter: use OO ->zflush dispatch X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3527c2bdf52bf938be76479b46e38fff3cc43b;p=thirdparty%2Fpublic-inbox.git 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. --- diff --git a/lib/PublicInbox/GzipFilter.pm b/lib/PublicInbox/GzipFilter.pm index fc471ea27..8b630f251 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; } }