Skip to content

Commit

Permalink
Only use a single thread pool for ArrayRecordWriter in Python.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 456116177
  • Loading branch information
Marvin182 authored and copybara-github committed Jun 20, 2022
1 parent 6d945e9 commit 92d9c3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/array_record_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ PYBIND11_MODULE(array_record_module, m) {
std::string(file_writer->status().message()));
}
return array_record::ArrayRecordWriter<
std::unique_ptr<riegeli::Writer>>(
std::move(file_writer), status_or_option.value(),
array_record::ArrayRecordGlobalPool());
std::unique_ptr<riegeli::Writer>>(std::move(file_writer),
status_or_option.value());
}),
py::arg("path"), py::arg("options") = "")
.def("ok", &ArrayRecordWriter::ok)
Expand Down

0 comments on commit 92d9c3d

Please sign in to comment.