Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/flush_counter_increments_worker.rb')
-rw-r--r--app/workers/flush_counter_increments_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/flush_counter_increments_worker.rb b/app/workers/flush_counter_increments_worker.rb
index 8c7e17587d0..e92e1a9b7b5 100644
--- a/app/workers/flush_counter_increments_worker.rb
+++ b/app/workers/flush_counter_increments_worker.rb
@@ -29,6 +29,6 @@ class FlushCounterIncrementsWorker
model = model_class.find_by_id(model_id)
return unless model
- model.flush_increments_to_database!(attribute)
+ Gitlab::Counters::BufferedCounter.new(model, attribute).commit_increment!
end
end