diff options
author | Cindy Pallares <cindy@gitlab.com> | 2019-04-11 17:38:28 -0500 |
---|---|---|
committer | Cindy Pallares <cindy@gitlab.com> | 2019-04-11 17:38:28 -0500 |
commit | 65b4b0cf468744b4e7ed7a874b1eb920317c0d43 (patch) | |
tree | 35393df96e82a5c1a39b18c056d3bb72e1e97914 | |
parent | e605d8c95d39cb361d69b4a122f9e34bc7d2677d (diff) | |
download | gitlab-ce-65b4b0cf468744b4e7ed7a874b1eb920317c0d43.tar.gz |
Fix typo in activity leasefix-typo-activity-lease
-rw-r--r-- | app/services/users/activity_service.rb | 2 | ||||
-rw-r--r-- | spec/services/users/activity_service_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/users/activity_service.rb b/app/services/users/activity_service.rb index e50840a9158..33444c2a7dc 100644 --- a/app/services/users/activity_service.rb +++ b/app/services/users/activity_service.rb @@ -30,7 +30,7 @@ module Users return if @user.last_activity_on == today - lease = Gitlab::ExclusiveLease.new("acitvity_service:#{@user.id}", + lease = Gitlab::ExclusiveLease.new("activity_service:#{@user.id}", timeout: LEASE_TIMEOUT) return unless lease.try_obtain diff --git a/spec/services/users/activity_service_spec.rb b/spec/services/users/activity_service_spec.rb index 3c0a4ac8e18..7b11d9e06e9 100644 --- a/spec/services/users/activity_service_spec.rb +++ b/spec/services/users/activity_service_spec.rb @@ -76,7 +76,7 @@ describe Users::ActivityService do let(:last_activity_on) { nil } it 'does not update last_activity_on' do - stub_exclusive_lease_taken("acitvity_service:#{user.id}", timeout: 1.minute.to_i) + stub_exclusive_lease_taken("activity_service:#{user.id}", timeout: 1.minute.to_i) expect { subject.execute }.not_to change(user, :last_activity_on) end |