diff --git a/agent_based_epidemic_sim/util/records.cc b/agent_based_epidemic_sim/util/records.cc index cb32fc2..d2c8e48 100644 --- a/agent_based_epidemic_sim/util/records.cc +++ b/agent_based_epidemic_sim/util/records.cc @@ -1,20 +1,15 @@ #include "agent_based_epidemic_sim/util/records.h" -#include - namespace abesim { -constexpr int kReadFlag = O_RDONLY; -constexpr int kWriteFlag = O_CREAT | O_WRONLY; - riegeli::RecordReader MakeRecordReader( absl::string_view filename) { - return riegeli::RecordReader(RiegeliBytesSource(filename, kReadFlag)); + return riegeli::RecordReader(RiegeliBytesSource(filename)); } riegeli::RecordWriter MakeRecordWriter( absl::string_view filename, const int parallelism) { return riegeli::RecordWriter( - RiegeliBytesSink(filename, kWriteFlag), + RiegeliBytesSink(filename), riegeli::RecordWriterBase::Options().set_parallelism(parallelism)); }