Removed the large Geo Location File - GeoLite2-City.mmdb from code and it's references.

This commit is contained in:
anuragkumawat
2021-09-03 02:23:16 +05:30
parent 7932bd33ab
commit 5a58d6a050
2 changed files with 1 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ public class GeoIpIntegrationTest {
public void givenIP_whenFetchingCity_thenReturnsCityData() throws IOException, GeoIp2Exception {
ClassLoader classLoader = getClass().getClassLoader();
File database = new File(classLoader.getResource("GeoLite2-City.mmdb").getFile());
File database = new File("your-path-to-db-file");
DatabaseReader dbReader = new DatabaseReader.Builder(database).build();
InetAddress ipAddress = InetAddress.getByName("google.com");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 MiB