Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
rename block parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chancefeick committed Oct 6, 2016
1 parent b611c8e commit 7673919
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/librato/metrics/persistence/direct.rb
Expand Up @@ -37,16 +37,16 @@ def chunk_queued(queued, per_request)
reqs = []
# separate metric-containing values from global values
globals = fetch_globals(queued)
top_level_keys.each do |metric_type|
metrics = queued[metric_type]
top_level_keys.each do |key|
metrics = queued[key]
next unless metrics
if metrics.size <= per_request
# we can fit all of this metric type in a single request
reqs << build_request(metric_type, metrics, globals)
reqs << build_request(key, metrics, globals)
else
# going to have to split things up
metrics.each_slice(per_request) do |elements|
reqs << build_request(metric_type, elements, globals)
reqs << build_request(key, elements, globals)
end
end
end
Expand Down

0 comments on commit 7673919

Please sign in to comment.