From 73b51fdf6e8bdb777399981f37b9a79d41f68b35 Mon Sep 17 00:00:00 2001 From: Pavlos Rontidis Date: Thu, 30 Nov 2023 20:42:07 +0200 Subject: [PATCH] restrict to Log --- lib/codecs/src/encoding/format/protobuf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/codecs/src/encoding/format/protobuf.rs b/lib/codecs/src/encoding/format/protobuf.rs index d3129c4d9546d..dc27070b12f71 100644 --- a/lib/codecs/src/encoding/format/protobuf.rs +++ b/lib/codecs/src/encoding/format/protobuf.rs @@ -31,7 +31,7 @@ impl ProtobufSerializerConfig { /// The data type of events that are accepted by `ProtobufSerializer`. pub fn input_type(&self) -> DataType { - DataType::all() + DataType::Log } /// The schema required by the serializer. @@ -251,7 +251,7 @@ mod tests { message_type: "test_protobuf.Person".into(), }, }; - assert_eq!(config.input_type(), DataType::all()); + assert_eq!(config.input_type(), DataType::Log); } #[test]