mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
admin setting for background thread count
This commit is contained in:
@@ -23,7 +23,6 @@ import com.commafeed.backend.model.FeedCategory;
|
||||
import com.commafeed.backend.model.FeedSubscription;
|
||||
import com.commafeed.backend.model.User;
|
||||
import com.commafeed.backend.model.UserRole.Role;
|
||||
import com.commafeed.backend.services.PasswordEncryptionService;
|
||||
import com.commafeed.backend.services.UserService;
|
||||
|
||||
@Startup
|
||||
@@ -48,9 +47,6 @@ public class StartupBean {
|
||||
@Inject
|
||||
UserService userService;
|
||||
|
||||
@Inject
|
||||
PasswordEncryptionService encryptionService;
|
||||
|
||||
@Inject
|
||||
ApplicationSettingsDAO applicationSettingsDAO;
|
||||
|
||||
@@ -66,8 +62,8 @@ public class StartupBean {
|
||||
initialData();
|
||||
}
|
||||
|
||||
// 3 threads
|
||||
for (int i = 0; i < 6; i++) {
|
||||
ApplicationSettings settings = applicationSettingsDAO.get();
|
||||
for (int i = 0; i < settings.getBackgroundThreads(); i++) {
|
||||
worker.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user