Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

fix: modify s3 read_all #64

Merged
merged 5 commits into from
Apr 30, 2024
Merged

fix: modify s3 read_all #64

merged 5 commits into from
Apr 30, 2024

Conversation

lanlou1554
Copy link
Collaborator

No description provided.

@lanlou1554 lanlou1554 requested a review from xx01cyx April 30, 2024 02:15
@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.75%. Comparing base (c9cc2c1) to head (bbe0672).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #64   +/-   ##
=======================================
  Coverage   86.75%   86.75%           
=======================================
  Files          21       21           
  Lines        3412     3412           
  Branches     3412     3412           
=======================================
  Hits         2960     2960           
  Misses        257      257           
  Partials      195      195           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

async fn read_all(&self) -> ParpulseResult<Bytes> {
let mut bytes = BytesMut::new();
async fn read_all(&self) -> ParpulseResult<Vec<Bytes>> {
let mut bytes_vec = Vec::new();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let mut bytes_vec = Vec::new();
let mut bytes_vec = Vec::with_capacity(self.keys.len());

@lanlou1554 lanlou1554 merged commit a914ac8 into main Apr 30, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants