mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-28 20:44:53 +00:00
server: remove needless clone
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
f098814876
commit
582ba899b6
@ -848,7 +848,7 @@ pub(crate) async fn push_snapshot(
|
|||||||
let archive_name = BackupArchiveName::from_path(&entry.filename)?;
|
let archive_name = BackupArchiveName::from_path(&entry.filename)?;
|
||||||
match archive_name.archive_type() {
|
match archive_name.archive_type() {
|
||||||
ArchiveType::Blob => {
|
ArchiveType::Blob => {
|
||||||
let file = std::fs::File::open(path.clone())?;
|
let file = std::fs::File::open(&path)?;
|
||||||
let backup_stats = backup_writer
|
let backup_stats = backup_writer
|
||||||
.upload_blob(file, archive_name.as_ref())
|
.upload_blob(file, archive_name.as_ref())
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user