Remove backoff criteria: it never kicked in

It never kicked in since we are never returning a retry() Result, but always either success() or failure() (see createWork() function). Also, there is already a default (exponential backoff starting from 30 seconds), so no need to override it.
This commit is contained in:
Stypox 2022-03-19 21:55:00 +01:00
parent 5fea12d8eb
commit 3d9d25df52
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 0 additions and 1 deletions

View File

@ -132,7 +132,6 @@ class NotificationWorker(
TimeUnit.MILLISECONDS
).setConstraints(constraints)
.addTag(WORK_TAG)
.setBackoffCriteria(BackoffPolicy.LINEAR, 30, TimeUnit.MINUTES)
.build()
WorkManager.getInstance(context)