rnewson commented on code in PR #6013:
URL: https://github.com/apache/couchdb/pull/6013#discussion_r3726983516
##########
src/couch_replicator/src/couch_replicator_api_wrap.erl:
##########
@@ -1052,6 +1068,32 @@ header_value(Key, Headers, Default) ->
_ ->
Default
end.
+
+%% Returns true if compression is enabled for HttpDb and Body is large enough.
+compress_requests(#httpdb{request_compression = ?COMPRESS_NONE}, _BodySize) ->
Review Comment:
the function implies its compresses requests, but it does not. instead it
indicates if a request (singular) should be compressed. a better name would
help reading comprehension.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]