From 99e9cea9789f0638d973e5c34f124fa2234a9090 Mon Sep 17 00:00:00 2001 From: davidlion Date: Thu, 25 Apr 2024 18:56:40 -0400 Subject: [PATCH] Rename LogEvent to LogEventStorage. --- cpp/src/ffi_go/ir/types.hpp | 2 +- cpp/src/ffi_go/types.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/ffi_go/ir/types.hpp b/cpp/src/ffi_go/ir/types.hpp index 366f519..794707c 100644 --- a/cpp/src/ffi_go/ir/types.hpp +++ b/cpp/src/ffi_go/ir/types.hpp @@ -49,7 +49,7 @@ struct Encoder { * ir.Deserializer (without any warning or way to guard in Go). */ struct Deserializer { - ffi_go::LogEvent m_log_event; + ffi_go::LogEventStorage m_log_event; ffi::epoch_time_ms_t m_timestamp{}; }; diff --git a/cpp/src/ffi_go/types.hpp b/cpp/src/ffi_go/types.hpp index 16bc6a2..345d10e 100644 --- a/cpp/src/ffi_go/types.hpp +++ b/cpp/src/ffi_go/types.hpp @@ -16,7 +16,7 @@ using LogMessage = std::string; * Mutating a field will invalidate the corresponding View (slice) stored in the * ffi.LogEventView (without any warning or way to guard in Go). */ -struct LogEvent { +struct LogEventStorage { auto reserve(size_t cap) -> void { m_log_message.reserve(cap); } LogMessage m_log_message;