diff --git a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp index d9c4167e..ee80acb4 100644 --- a/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp +++ b/src/clp_ffi_js/ir/StructuredIrStreamReader.cpp @@ -40,11 +40,11 @@ auto StructuredIrStreamReader::create( auto deserialized_log_events{std::make_shared>()}; auto result{StructuredIrDeserializer::create( *zstd_decompressor, - IrUnitHandler( + IrUnitHandler{ deserialized_log_events, reader_options["logLevelKey"].as(), reader_options["timestampKey"].as() - ) + } )}; if (result.has_error()) { auto const error_code{result.error()};