Skip to content

Refactor events #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2022
Merged

Refactor events #37

merged 1 commit into from
Aug 16, 2022

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.

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 nitisht and de-sh 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