Skip to content

Commit

Permalink
[fix] Add duration_cast for osx compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MadSchemas committed Jul 26, 2024
1 parent 6aa95bb commit 94e79c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_src/events/serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UpdateSerializer {
ser_.PutVarint(opts.ServerID());
}
if (opts.IsWithTimestamp()) {
ser_.PutVarint(rec.Timestamp().time_since_epoch().count());
ser_.PutVarint(std::chrono::duration_cast<std::chrono::nanoseconds>(rec.Timestamp().time_since_epoch()).count());
}

// WrSerializer tmpSer;
Expand Down

0 comments on commit 94e79c9

Please sign in to comment.