diff --git a/Cargo.lock b/Cargo.lock index af2561b..b7e514c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -310,7 +310,7 @@ dependencies = [ [[package]] name = "ckb-analyzer" -version = "0.1.4" +version = "0.1.5" dependencies = [ "chrono", "ckb-logger-config", diff --git a/Cargo.toml b/Cargo.toml index a643816..f09e67b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ckb-analyzer" -version = "0.1.4" +version = "0.1.5" license = "MIT" authors = ["keroro "] edition = "2018" diff --git a/src/util/ipinfo.rs b/src/util/ipinfo.rs index 0cce10f..55c8701 100644 --- a/src/util/ipinfo.rs +++ b/src/util/ipinfo.rs @@ -47,11 +47,10 @@ pub fn lookup_ipinfo(ip: &str) -> Result { } pub mod test { - use crate::util::ipinfo::{lookup_ipinfo, IPINFO_CACHE}; - #[test] #[ignore] // This case needs env var "IPINFO_IO_TOKEN" fn test_lookup_ipinfo_cache() { + use crate::util::ipinfo::{lookup_ipinfo, IPINFO_CACHE}; { let cache = IPINFO_CACHE.lock().unwrap(); assert!(cache.get("8.8.8.8").is_none());