This commit is contained in:
Drew Tada 2024-02-15 11:48:31 -05:00
parent 30f0543e63
commit 56a0b21eea
2 changed files with 0 additions and 3 deletions

View File

@ -34,7 +34,6 @@ pub enum LocalRequest {
///
/// If requested, will return a NewPackageResponse indicating success/failure.
/// This is used for locally installing a package.
/// TODO could switch this to Erc721Metadata
NewPackage {
package: PackageId,
/// Sets whether we will mirror this package for others
@ -53,7 +52,6 @@ pub enum LocalRequest {
/// when a new version is posted to the listings contract
auto_update: bool,
/// The version hash we're looking for. If None, will download the latest.
/// TODO could switch this to more friendly version numbers e.g 1.0.1 given new metadata structure
desired_version_hash: Option<String>,
},
/// Select a downloaded package and install it. Will only succeed if the

View File

@ -243,7 +243,6 @@ fn serve_paths(
let mirrors: &Vec<NodeId> = pkg_listing
.metadata
.as_ref()
// TODO better error handling - this will be common!
.expect("Package does not have metadata")
.properties
.mirrors