Skip to content

Commit

Permalink
fix: Remove measure_request_duration from Util
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Sep 4, 2024
1 parent 77967a8 commit 0faa151
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ def prepare_headers(config_headers)
headers
end

def measure_request_duration
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
begin
yield
ensure
stop = Process.clock_gettime(Process::CLOCK_MONOTONIC)
1000.0 * (stop - start)
end
end

def parse_headers(raw)
entries = raw.split(',')
raise ArgumentError, ERROR_MESSAGE_INVALID_HEADERS if entries.empty?
Expand Down

0 comments on commit 0faa151

Please sign in to comment.