mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-11-29 21:33:26 -05:00
renamed Captcha to CaptchaManager
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
@@ -2,11 +2,11 @@ package lc.background
|
||||
|
||||
import lc.database.Statements
|
||||
import java.util.concurrent.{ScheduledThreadPoolExecutor, TimeUnit}
|
||||
import lc.core.{Captcha, Config}
|
||||
import lc.core.{CaptchaManager, Config}
|
||||
import lc.core.{Parameters, Size}
|
||||
import lc.misc.HelperFunctions
|
||||
|
||||
class BackgroundTask(config: Config, captcha: Captcha) {
|
||||
class BackgroundTask(config: Config, captchaManager: CaptchaManager) {
|
||||
|
||||
private val task = new Runnable {
|
||||
def run(): Unit = {
|
||||
@@ -28,7 +28,7 @@ class BackgroundTask(config: Config, captcha: Captcha) {
|
||||
val throttle = (config.throttle * 1.1).toInt - imageNum
|
||||
|
||||
for (i <- 0 until throttle) {
|
||||
captcha.generateChallenge(getRandomParam())
|
||||
captchaManager.generateChallenge(getRandomParam())
|
||||
}
|
||||
} catch { case exception: Exception => println(exception) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user