Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kingzacko1 committed Aug 19, 2022
1 parent 0800e8e commit d755fd9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -255,7 +255,7 @@ private void setFilePermissions(Path filePath) {
private BucketsAndKeys getBucketsAndKeys(GeoIpResolverConfig config) {
String cityFile = config.cityDbPath();
int cityLastSlash = cityFile.lastIndexOf("/");
String cityBucket = cityFile.substring(S3GeoIpFileService.S3_BUCKET_PREFIX.length(), cityLastSlash);
String cityBucket = cityFile.substring(S3_BUCKET_PREFIX.length(), cityLastSlash);
String cityKey = cityFile.substring(cityLastSlash + 1);
LOG.debug("City Bucket = {}, City Key = {}", cityBucket, cityKey);

Expand All @@ -264,7 +264,7 @@ private BucketsAndKeys getBucketsAndKeys(GeoIpResolverConfig config) {
if (!config.asnDbPath().isEmpty()) {
String asnFile = config.asnDbPath();
int asnLastSlash = asnFile.lastIndexOf("/");
asnBucket = asnFile.substring(S3GeoIpFileService.S3_BUCKET_PREFIX.length(), asnLastSlash);
asnBucket = asnFile.substring(S3_BUCKET_PREFIX.length(), asnLastSlash);
asnKey = asnFile.substring(asnLastSlash + 1);
}
LOG.debug("ASN Bucket = {}, ASN Key = {}", asnBucket, asnKey);
Expand Down

0 comments on commit d755fd9

Please sign in to comment.