diff options
Diffstat (limited to 'app/services/projects/group_links/destroy_service.rb')
-rw-r--r-- | app/services/projects/group_links/destroy_service.rb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/app/services/projects/group_links/destroy_service.rb b/app/services/projects/group_links/destroy_service.rb index 01a5b617b46..19df0dc2c73 100644 --- a/app/services/projects/group_links/destroy_service.rb +++ b/app/services/projects/group_links/destroy_service.rb @@ -13,19 +13,15 @@ module Projects end group_link.destroy.tap do |link| - if Feature.enabled?(:use_specialized_worker_for_project_auth_recalculation) - refresh_project_authorizations_asynchronously(link.project) + refresh_project_authorizations_asynchronously(link.project) - # Until we compare the inconsistency rates of the new specialized worker and - # the old approach, we still run AuthorizedProjectsWorker - # but with some delay and lower urgency as a safety net. - link.group.refresh_members_authorized_projects( - blocking: false, - priority: UserProjectAccessChangedService::LOW_PRIORITY - ) - else - link.group.refresh_members_authorized_projects - end + # Until we compare the inconsistency rates of the new specialized worker and + # the old approach, we still run AuthorizedProjectsWorker + # but with some delay and lower urgency as a safety net. + link.group.refresh_members_authorized_projects( + blocking: false, + priority: UserProjectAccessChangedService::LOW_PRIORITY + ) end end |