Merge pull request #501 from hjubb/dev

fix job id mismatch
This commit is contained in:
Niels Andriesse 2021-04-14 12:53:18 +10:00 committed by GitHub
commit 9ccd72bf33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class JobQueue : JobDelegate {
// of the order in which the jobs were added. // of the order in which the jobs were added.
val currentTime = System.currentTimeMillis() val currentTime = System.currentTimeMillis()
jobTimestampMap.putIfAbsent(currentTime, AtomicInteger()) jobTimestampMap.putIfAbsent(currentTime, AtomicInteger())
job.id = jobTimestampMap[currentTime]!!.getAndIncrement().toString() job.id = currentTime.toString() + jobTimestampMap[currentTime]!!.getAndIncrement().toString()
MessagingConfiguration.shared.storage.persistJob(job) MessagingConfiguration.shared.storage.persistJob(job)
} }