Skip to content

Commit 7bbcbae

Browse files
committed
fix: geocode --batch 0 causes panic when polars feature is also enabled
as it uses polars accelerated count, which causes a panic with tokio conflicts just use "regular" count
1 parent 6fc2091 commit 7bbcbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/geocode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ async fn geocode_main(args: Args) -> CliResult<()> {
11691169

11701170
// reuse batch buffers
11711171
let batchsize: usize = if args.flag_batch == 0 {
1172-
std::cmp::max(1000, util::count_rows(&rconfig)? as usize)
1172+
std::cmp::max(1000, util::count_rows_regular(&rconfig)? as usize)
11731173
} else {
11741174
args.flag_batch
11751175
};

0 commit comments

Comments
 (0)