Skip to content

Conversation

trueleo
Copy link
Contributor

@trueleo trueleo commented Aug 15, 2022

Description

This PR refactors some of the event processing code to remove duplicates and some of potentially dead code.


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

string_schema: String,
storage: &impl ObjectStorage,
) -> Result<response::EventResponse, Error> {
let mut c = Cursor::new(Vec::new());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Underlying memory for this Cursor is a newly allocated Vec. Reader is then written in this vec but there is no usage of c beyond these 3 line. Is this dead code ?

@trueleo trueleo requested review from de-sh and nitisht August 15, 2022 14:56
@trueleo trueleo marked this pull request as ready for review August 15, 2022 15:25
@nitisht
Copy link
Member

nitisht commented Aug 15, 2022

We'll test this and then take it for first release

Copy link
Member

@nitisht nitisht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nitisht nitisht merged commit 18f8a5a into parseablehq:main Aug 16, 2022
@trueleo trueleo deleted the events branch August 16, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants