Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use a cleaner name for a local variable.

Pavel Balashoucee47532affa
diff --git a/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb b/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb
index 607f190088a..5790b60b845 100644
--- a/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb
+++ b/modules/storages/app/workers/storages/manage_nextcloud_integration_events_job.rb
@@ -37,8 +37,9 @@ module Storages
queue_with_priority :above_normal
def self.debounce
- last_debounce_happend_at = RequestStore.store[KEY]
- if last_debounce_happend_at.blank? || Time.current > (last_debounce_happend_at + SINGLE_THREAD_DEBOUNCE_TIME)
+ last_current_thread_debounce_happend_at = RequestStore.store[KEY]
+ if last_current_thread_debounce_happend_at.blank? ||
+ Time.current > (last_current_thread_debounce_happend_at + SINGLE_THREAD_DEBOUNCE_TIME)
Rails.cache.fetch(KEY, expires_in: MULTI_THREAD_DEBOUNCE_TIME) do
set(wait: MULTI_THREAD_DEBOUNCE_TIME).perform_later
RequestStore.store[KEY] = Time.current