def METHOD_NAME(url: str, filename: str) -> None:
    log.info(f"Updating geoip database for {url} ({filename})")
    tmp_gz_out = OONI_API_DIR / f"{filename}.gz.tmp"
    tmp_out = OONI_API_DIR / f"{filename}.tmp"
    with get_request(url) as resp:
        with tmp_gz_out.open("wb") as out_file:
            shutil.copyfileobj(resp, out_file)
    with gzip.open(str(tmp_gz_out)) as in_file:
        with tmp_out.open("wb") as out_file:
            shutil.copyfileobj(in_file, out_file)
    tmp_gz_out.unlink()
    try:
        check_geoip_db(tmp_out)
    except Exception as exc:
        log.error(f"consistenty check on the geoip DB failed: {exc}")
        metrics.incr("ooni_geoip_checkfail")
        return
    tmp_out.rename(OONI_API_DIR / filename)