mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Fix grouping across hourly buckets happening in a 12 seconds window instead of 12 hours window (#31062)
This commit is contained in:
parent
f587ff643f
commit
6e47637dd4
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ class NotifyService < BaseService
|
|||
hour_bucket = previous_bucket if hour_bucket < previous_bucket + MAXIMUM_GROUP_SPAN_HOURS
|
||||
|
||||
# We do not concern ourselves with race conditions since we use hour buckets
|
||||
redis.set(redis_key, hour_bucket, ex: MAXIMUM_GROUP_SPAN_HOURS)
|
||||
redis.set(redis_key, hour_bucket, ex: MAXIMUM_GROUP_SPAN_HOURS.hours.to_i)
|
||||
|
||||
"#{type_prefix}-#{hour_bucket}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue