refactor: Remove BlobObject::create(), use create_and_deduplicate_from_bytes() instead (#6467)

Part of #6332
This commit is contained in:
Hocuri
2025-01-24 20:04:02 +01:00
committed by GitHub
parent 6430977670
commit b0c8d46762
2 changed files with 55 additions and 84 deletions

View File

@@ -1114,7 +1114,7 @@ impl Message {
.unwrap_or_else(|| "unknown_file".to_string())
};
let blob = BlobObject::create_and_deduplicate(context, file, &name)?;
let blob = BlobObject::create_and_deduplicate(context, file, Path::new(&name))?;
self.param.set(Param::File, blob.as_name());
self.param.set(Param::Filename, name);