Всё работает. Плюс чть улучшил тест работы геолокации
This commit is contained in:
AidarKC
2025-12-10 13:20:24 +03:00
parent 47c53c1a14
commit 2ab1bbc02c
2 changed files with 8 additions and 2 deletions
@@ -31,7 +31,13 @@ public class GeoLookupTestMain {
ip = detectedIp;
}
// Замер времени
long start = System.currentTimeMillis();
String result = GeoLookupService.resolveCountryCityOrIp(ip);
long end = System.currentTimeMillis();
long duration = end - start;
System.out.println("Результат геолокации: " + result);
System.out.println("Время ответа геолокации: " + duration + " мс");
}
}