Merge "Change DropboxRateLimiter to rate limit proto tombstones and regular tombstones separately." am: ab294c72f2

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2323516

Change-Id: Iddd2a9e84bfb57dcb9cc2664e5562c8191917dd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Siim Sammul
2022-12-02 15:59:46 +00:00
committed by Automerger Merge Worker

View File

@@ -341,7 +341,8 @@ public class BootReceiver extends BroadcastReceiver {
// non-proto tombstones, even though proto tombstones do not support including the counter // non-proto tombstones, even though proto tombstones do not support including the counter
// of events dropped since rate limiting activated yet. // of events dropped since rate limiting activated yet.
DropboxRateLimiter.RateLimitResult rateLimitResult = DropboxRateLimiter.RateLimitResult rateLimitResult =
sDropboxRateLimiter.shouldRateLimit(TAG_TOMBSTONE, processName); sDropboxRateLimiter.shouldRateLimit(
proto ? TAG_TOMBSTONE_PROTO : TAG_TOMBSTONE, processName);
if (rateLimitResult.shouldRateLimit()) return; if (rateLimitResult.shouldRateLimit()) return;
HashMap<String, Long> timestamps = readTimestamps(); HashMap<String, Long> timestamps = readTimestamps();