Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 429148404
  • Loading branch information
Pandemic-Sim Team authored and copybara-github committed Feb 16, 2022
1 parent 14742dc commit bbb0ec6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions agent_based_epidemic_sim/util/records.cc
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
#include "agent_based_epidemic_sim/util/records.h"

#include <fcntl.h>

namespace abesim {

constexpr int kReadFlag = O_RDONLY;
constexpr int kWriteFlag = O_CREAT | O_WRONLY;

riegeli::RecordReader<RiegeliBytesSource> MakeRecordReader(
absl::string_view filename) {
return riegeli::RecordReader(RiegeliBytesSource(filename, kReadFlag));
return riegeli::RecordReader(RiegeliBytesSource(filename));
}
riegeli::RecordWriter<RiegeliBytesSink> MakeRecordWriter(
absl::string_view filename, const int parallelism) {
return riegeli::RecordWriter(
RiegeliBytesSink(filename, kWriteFlag),
RiegeliBytesSink(filename),
riegeli::RecordWriterBase::Options().set_parallelism(parallelism));
}

Expand Down

0 comments on commit bbb0ec6

Please sign in to comment.