Skip to content

Commit

Permalink
Merge pull request #164 from catalyst/MOODLE_35_STABLE-161
Browse files Browse the repository at this point in the history
correcting issue 161 add progress bar param to record_metrics function
  • Loading branch information
brendanheywood committed Aug 21, 2023
2 parents c703de6 + 0205f57 commit c7067d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion collector/cloudwatch/classes/collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ public function record_metric(metric_item $item) {
* Record an array of metric data
*
* @param array $items
* @param \progress_bar|null $progress
* @return mixed
*/
public function record_metrics(array $items) {
public function record_metrics(array $items, \progress_bar $progress = null) {
$metricdata = [];
foreach ($items as $item) {
$metricdata[] = $this->make_metric_data_entry($item);
Expand Down

0 comments on commit c7067d8

Please sign in to comment.