From ed3f9da773db4db965347d0dc2c9854317b93484 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 9 Oct 2019 16:46:17 +0100 Subject: [PATCH] throttle loading even further, to 1000/sec --- .../main/groovy/com/muwire/core/files/PersisterService.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy index 1c275a81..16911ee5 100644 --- a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy @@ -60,7 +60,7 @@ class PersisterService extends Service { log.fine("loaded file $event.loadedFile.file") listener.publish event loaded++ - if (loaded % 50 == 0) + if (loaded % 10 == 0) Thread.sleep(10) } }