mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 08:44:15 +02:00
limiting 6 suggestions per packaging time
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import time
|
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
@@ -326,7 +325,7 @@ class GenericApplicationManager(ApplicationManager):
|
|||||||
if self.managers:
|
if self.managers:
|
||||||
suggestions, threads = [], []
|
suggestions, threads = [], []
|
||||||
for man in self.managers:
|
for man in self.managers:
|
||||||
t = Thread(target=self._fill_suggestions, args=(suggestions, man, limit))
|
t = Thread(target=self._fill_suggestions, args=(suggestions, man, 6))
|
||||||
t.start()
|
t.start()
|
||||||
threads.append(t)
|
threads.append(t)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user