Skip to content
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

feat: sort and skip empty requests for hash #1878

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jan 1, 2025

Motivation

Closes #1871

Adds more correctness for requests hashing

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, one suggestion

Comment on lines 92 to 93
let mut requests: Vec<_> = self.0.iter().collect();
requests.retain(|req| req.len() > 1);
Copy link
Member

Choose a reason for hiding this comment

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

nit: this can be iter+filter


let mut requests: Vec<_> = self.0.iter().collect();
requests.retain(|req| req.len() > 1);
requests.sort();
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this sort by x[0]?

@mattsse mattsse merged commit 3990ecb into main Jan 3, 2025
26 checks passed
@mattsse mattsse deleted the klkvr/fix-req-hash branch January 3, 2025 11:14
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.

[Feature] Order 7685 requests before hashing
3 participants