mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
to run_search_test
This commit is contained in:
parent
7f5844ca94
commit
0422ed3f4f
@ -45,7 +45,7 @@ def create_searcher(db_path, cache_policy):
|
||||
return searcher
|
||||
|
||||
|
||||
def run(db_path: str, cache_policy: str):
|
||||
def run_search_test(db_path: str, cache_policy: str):
|
||||
# create the searcher
|
||||
searcher = None
|
||||
try:
|
||||
@ -106,4 +106,4 @@ if __name__ == "__main__":
|
||||
sys.exit()
|
||||
|
||||
# run the search test
|
||||
run(args.db, args.cache_policy)
|
||||
run_search_test(args.db, args.cache_policy)
|
||||
Loading…
x
Reference in New Issue
Block a user