fix rvc index

This commit is contained in:
Brandon Thomas committed 2023-12-19 05:36:29 -05:00
1 parent fd28585e13
commit 70e4af2b4c
1 file changed
+2 -5
@@ -151,11 +151,8 @@ impl VcModel {
if !model.has_index_file {
return None;
}
let path = WeightFileBucketPath::from_object_hash(
&model.public_bucket_hash,
model.maybe_public_bucket_prefix.as_deref(),
Some(".rvc_index"));
// NB: Technically, we should read prefix/extension from DB. We keep index file extensions by convention, however.
let path = WeightFileBucketPath::rvc_index_file_from_object_hash(&model.public_bucket_hash);
Some(PathBuf::from(path.get_full_object_path_str()))
}
}