Skip to content

Commit

Permalink
use slice instead of clone
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 14, 2024
1 parent c2e4137 commit 4679266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runners/s3-benchrunner-rust/src/transfer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl TransferManagerRunner {
let stream = if self.config().workload.files_on_disk {
InputStream::from_path(key).with_context(|| "Failed to create stream")?
} else {
self.handle.random_data_for_upload.clone().into()
self.handle.random_data_for_upload.slice(0..(task_config.size as usize)).into()
};

self.handle
Expand Down

0 comments on commit 4679266

Please sign in to comment.