feat: make preloading of CIDR asynchronous at application startup

This commit is contained in:
Rekryt
2024-09-22 20:46:54 +03:00
parent 11952303cd
commit 6e42686fc7
3 changed files with 20 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ class IPListService {
EventLoop::queue(function () {
foreach ($this->sites as $siteEntity) {
if ($siteEntity->timeout) {
$siteEntity->preload();
$siteEntity->reload();
delay(1);
}