Skip to content

Commit

Permalink
Change list of arguments for overridden Net::HTTP#request.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxshend committed Apr 25, 2022
1 parent 9e11bfc commit a573e37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module IoToResponsePayloadRatio
module NetHttpAdapterPatch
def request(*args, **kwargs, &block)
def request(*args, &block)
super do |response|
if response.body && IoToResponsePayloadRatio.aggregator.active?
IoToResponsePayloadRatio.aggregator.increment(NetHttpAdapter.kind, response.body.bytesize)
Expand Down

0 comments on commit a573e37

Please sign in to comment.