mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Remove redundant timeout declarations
This commit is contained in:
parent
86eb4298c5
commit
243b4afc78
2 changed files with 0 additions and 4 deletions
|
|
@ -1,8 +1,6 @@
|
|||
class Hackatime::Heartbeat < HackatimeRecord
|
||||
include Heartbeatable
|
||||
|
||||
heartbeat_timeout_duration 2.minutes
|
||||
|
||||
def self.cached_recent_count
|
||||
Rails.cache.fetch("heartbeats_recent_count", expires_in: 5.minutes) do
|
||||
recent.size
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ class Heartbeat < ApplicationRecord
|
|||
|
||||
include Heartbeatable
|
||||
|
||||
heartbeat_timeout_duration 2.minutes
|
||||
|
||||
scope :today, -> { where(time: Time.current.beginning_of_day..Time.current.end_of_day) }
|
||||
|
||||
enum :source_type, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue